diff options
| author | Stephen Blott | 2014-12-13 17:08:50 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-12-13 17:08:50 +0000 |
| commit | 16791e1aba770fb421a5cd8efbdb287473c8bdba (patch) | |
| tree | 8d14a75b157a6813400ace801b7090daefb87c85 | |
| parent | ff3586a0cbd0ed4e7ad1bc818f5906292bf07d6d (diff) | |
| parent | ba11cd17db2178e288c9585947e0387ba86852a4 (diff) | |
| download | vimium-16791e1aba770fb421a5cd8efbdb287473c8bdba.tar.bz2 | |
Merge pull request #1304 from smblott-github/scrolling-fix-viewSize
Fix flipped viewSize properties in scroller.
| -rw-r--r-- | content_scripts/scroller.coffee | 4 |
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 |
