Fixed adjust scroll
This commit is contained in:
parent
0a00931efd
commit
7cc1c4e8b7
@ -185,6 +185,7 @@ define([
|
|||||||
if(this.cursorY !== coordinates.y) {
|
if(this.cursorY !== coordinates.y) {
|
||||||
this.cursorY = coordinates.y;
|
this.cursorY = coordinates.y;
|
||||||
eventMgr.onCursorCoordinates(coordinates.x, coordinates.y);
|
eventMgr.onCursorCoordinates(coordinates.x, coordinates.y);
|
||||||
|
}
|
||||||
if(adjustScroll) {
|
if(adjustScroll) {
|
||||||
var adjustTop, adjustBottom;
|
var adjustTop, adjustBottom;
|
||||||
adjustTop = adjustBottom = inputElt.offsetHeight / 2 * settings.cursorFocusRatio;
|
adjustTop = adjustBottom = inputElt.offsetHeight / 2 * settings.cursorFocusRatio;
|
||||||
@ -201,7 +202,6 @@ define([
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
adjustScroll = false;
|
adjustScroll = false;
|
||||||
}, this);
|
}, this);
|
||||||
this.updateCursorCoordinates = function(adjustScrollParam) {
|
this.updateCursorCoordinates = function(adjustScrollParam) {
|
||||||
|
Loading…
Reference in New Issue
Block a user