Merge pull request #1502 from ajaxorg/scrolling_issues

fix several small issues on mac
This commit is contained in:
Ruben Daniels 2013-07-06 03:48:01 -07:00
commit 65713e974b
4 changed files with 69 additions and 12 deletions

View file

@ -727,7 +727,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();
@ -1269,7 +1270,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) {