mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-01 19:42:34 +01:00
Fix smooth scrolling issue.
This commit is contained in:
@@ -1377,6 +1377,11 @@ var Buffer = Module("Buffer", {
|
||||
if (node.dactylScrollTimer)
|
||||
node.dactylScrollTimer.cancel();
|
||||
|
||||
if (x == null)
|
||||
x = elem.scrollLeft;
|
||||
if (y == null)
|
||||
y = elem.scrollTop;
|
||||
|
||||
x = node.dactylScrollDestX = Math.min(x, elem.scrollWidth - elem.clientWidth);
|
||||
y = node.dactylScrollDestY = Math.min(y, elem.scrollHeight - elem.clientHeight);
|
||||
let [startX, startY] = [elem.scrollLeft, elem.scrollTop];
|
||||
|
||||
Reference in New Issue
Block a user