fix horizontal scrolling

This commit is contained in:
nightwing 2013-07-02 15:25:17 +04:00
commit a8ac1b1e9a

View file

@ -720,7 +720,8 @@ var VirtualRenderer = function(container, theme) {
changes & this.CHANGE_SIZE ||
changes & this.CHANGE_TEXT ||
changes & this.CHANGE_LINES ||
changes & this.CHANGE_SCROLL
changes & this.CHANGE_SCROLL ||
changes & this.CHANGE_H_SCROLL
)
this.$computeLayerConfig();
@ -1262,7 +1263,9 @@ var VirtualRenderer = function(container, theme) {
if (deltaY > 0 && this.session.getScrollTop() + this.$size.scrollerHeight
- this.layerConfig.maxHeight < -1 + this.scrollMargin.bottom)
return true;
// todo: handle horizontal scrolling
// todo: better handle horizontal scrolling
if (deltaX)
return true;
};
this.pixelToScreenCoordinates = function(x, y) {