diff --git a/pages/background.js b/pages/background.js
index 85e38ad..4e036e2 100644
--- a/pages/background.js
+++ b/pages/background.js
@@ -22,6 +22,7 @@ var defaultOptions = {
// Keyboard Settings
keyboardSupport : true, // option
arrowScroll : 50, // [px]
+ spaceScroll : 0.9, // decimal
// Other
touchpadSupport : true,
diff --git a/pages/options.html b/pages/options.html
index 3f0358f..f610b78 100755
--- a/pages/options.html
+++ b/pages/options.html
@@ -242,6 +242,12 @@
Scroll Settings
Default value: 4 |
(ratio of "tail" to "acceleration") |
+
+ |
+ |
+ Default value: 0.9 |
+ (how much with spacebar) |
+
|
|
diff --git a/pages/options.js b/pages/options.js
index d743c38..b519bc8 100644
--- a/pages/options.js
+++ b/pages/options.js
@@ -11,6 +11,7 @@ var optionsList = [
'animationTime',
'stepSize',
'arrowScroll',
+ 'spaceScroll',
'middleMouse',
'accelerationMax',
'accelerationDelta',
diff --git a/src/sscr.js b/src/sscr.js
index 962f443..0cc4d3e 100755
--- a/src/sscr.js
+++ b/src/sscr.js
@@ -28,6 +28,7 @@ var defaultOptions = {
// Keyboard Settings
keyboardSupport : true, // option
arrowScroll : 50, // [px]
+ spaceScroll : 0.9, // decimal
// Other
touchpadSupport : false,
@@ -427,7 +428,7 @@ function keydown(event) {
break;
case key.spacebar: // (+ shift)
shift = event.shiftKey ? 1 : -1;
- y = -shift * clientHeight * 0.9;
+ y = -shift * clientHeight * options.spaceScroll;
break;
case key.pageup:
y = -clientHeight * 0.9;