aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/scroller.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/scroller.coffee b/content_scripts/scroller.coffee
index 0964a289..5eb1c5e2 100644
--- a/content_scripts/scroller.coffee
+++ b/content_scripts/scroller.coffee
@@ -8,12 +8,12 @@ scrollProperties =
x: {
axisName: 'scrollLeft'
max: 'scrollWidth'
- viewSize: 'clientHeight'
+ viewSize: 'clientWidth'
}
y: {
axisName: 'scrollTop'
max: 'scrollHeight'
- viewSize: 'clientWidth'
+ viewSize: 'clientHeight'
}
# Translate a scroll request into a number (which will be interpreted by `scrollBy` as a relative amount, or