From f53aa2cbed3768390ff7f6b3862ede0d163f648b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 10 Oct 2011 12:46:56 -0400 Subject: Fix smooth scrolling issue. --- common/modules/buffer.jsm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/modules') 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]; -- cgit v1.2.3