diff options
author | anekos | 2010-03-14 11:08:07 +0000 |
---|---|---|
committer | anekos | 2010-03-14 11:08:07 +0000 |
commit | 088d15347a716f6e7fc83d934a66eb7285b13672 (patch) | |
tree | a553c6e93fa0db15f0df8068de2908e4ec2fa5ab /_smooziee.js | |
parent | 7dc91cc6e9cd1b064704b83d1539442d4bd2818d (diff) | |
download | vimperator-plugins-088d15347a716f6e7fc83d934a66eb7285b13672.tar.bz2 |
mend
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37017 d0d07461-0603-4401-acd4-de1884942a52
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 } ); // }}} |