fix #1629 Not able to scroll smoothly with a Mac trackpad, when the pointer is inside the editor.
This commit is contained in:
parent
bfd68fb1cf
commit
eb2cfdfdfd
1 changed files with 4 additions and 2 deletions
|
|
@ -1335,8 +1335,10 @@ var VirtualRenderer = function(container, theme) {
|
||||||
- this.layerConfig.maxHeight - (this.$size.scrollerHeight - this.lineHeight) * this.$scrollPastEnd
|
- this.layerConfig.maxHeight - (this.$size.scrollerHeight - this.lineHeight) * this.$scrollPastEnd
|
||||||
< -1 + this.scrollMargin.bottom)
|
< -1 + this.scrollMargin.bottom)
|
||||||
return true;
|
return true;
|
||||||
// todo: better handle horizontal scrolling
|
if (deltaX < 0 && this.session.getScrollLeft() >= 1 - this.scrollMargin.left)
|
||||||
if (deltaX)
|
return true;
|
||||||
|
if (deltaX > 0 && this.session.getScrollLeft() + this.$size.scrollerWidth
|
||||||
|
- this.layerConfig.width < -1 + this.scrollMargin.right)
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue