aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/scroller.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/content_scripts/scroller.coffee b/content_scripts/scroller.coffee
index 8ce87253..07dc9f11 100644
--- a/content_scripts/scroller.coffee
+++ b/content_scripts/scroller.coffee
@@ -139,6 +139,9 @@ doScrollBy = do ->
animate = (timestamp) ->
start ?= timestamp
+ # FIXME(smblott) This calculation is not correctly calibrated:
+ # - A `j` with smooth scrolling does not take you to the same place as a `j` with jump scrolling.
+ # - A `j` followed by `k` does not take you back to exactly where you started.
progress = timestamp - start
scrollDelta = roundOut(delta * progress) - scrolledAmount
scrolledAmount += scrollDelta