diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-10-10 12:46:56 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-10-10 12:46:56 -0400 |
commit | f53aa2cbed3768390ff7f6b3862ede0d163f648b (patch) | |
tree | 0992498e422ba30df54c561bd386a5568ec37a60 /common/modules | |
parent | 0647ec14bb86b3ffb08b685629ad9ed92362142c (diff) | |
download | pentadactyl-f53aa2cbed3768390ff7f6b3862ede0d163f648b.tar.gz |
Fix smooth scrolling issue.
Diffstat (limited to 'common/modules')
-rw-r--r-- | common/modules/buffer.jsm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/modules/buffer.jsm b/common/modules/buffer.jsm index 0fc93393..65c60efe 100644 --- a/common/modules/buffer.jsm +++ b/common/modules/buffer.jsm @@ -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]; |