From 088d15347a716f6e7fc83d934a66eb7285b13672 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 14 Mar 2010 11:08:07 +0000 Subject: mend git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37017 d0d07461-0603-4401-acd4-de1884942a52 --- _smooziee.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to '_smooziee.js') 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 } ); // }}} -- cgit v1.2.3