snap scrolling to edges
(it doesn't make sense to have editor scrolled by just one char)
This commit is contained in:
parent
85e087f87d
commit
0d02902831
1 changed files with 1 additions and 1 deletions
|
|
@ -715,7 +715,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.scrollToX = function(scrollLeft) {
|
this.scrollToX = function(scrollLeft) {
|
||||||
if (scrollLeft <= this.$padding)
|
if (scrollLeft <= this.$padding + 2 * this.layerConfig.characterWidth)
|
||||||
scrollLeft = 0;
|
scrollLeft = 0;
|
||||||
|
|
||||||
this.scroller.scrollLeft = scrollLeft;
|
this.scroller.scrollLeft = scrollLeft;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue