diff options
Diffstat (limited to '_smooziee.js')
-rw-r--r-- | _smooziee.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/_smooziee.js b/_smooziee.js index c00035a..fd82c58 100644 --- a/_smooziee.js +++ b/_smooziee.js @@ -95,16 +95,22 @@ let self = liberator.plugins.smooziee = (function(){ [modes.NORMAL], ["j"], "Smooth scroll down", - function(){ - self.smoothScrollBy(getScrollAmount()); + function(count){ + self.smoothScrollBy(getScrollAmount() * (count || 1)); + }, + { + count: true } ); mappings.addUserMap( [modes.NORMAL], ["k"], "Smooth scroll up", - function(){ - self.smoothScrollBy(getScrollAmount() * -1); + function(count){ + self.smoothScrollBy(getScrollAmount() * -(count || 1)); + }, + { + count: true } ); // }}} |