aboutsummaryrefslogtreecommitdiffstats
path: root/_smooziee.js
diff options
context:
space:
mode:
authoranekos2010-03-14 11:08:07 +0000
committeranekos2010-03-14 11:08:07 +0000
commit088d15347a716f6e7fc83d934a66eb7285b13672 (patch)
treea553c6e93fa0db15f0df8068de2908e4ec2fa5ab /_smooziee.js
parent7dc91cc6e9cd1b064704b83d1539442d4bd2818d (diff)
downloadvimperator-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.js14
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
}
);
// }}}