aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <brendan@inkdit.com>2011-06-07 09:57:25 -0600
committerGravatar Brendan Taylor <brendan@inkdit.com>2011-06-07 09:57:25 -0600
commitac0d4c7fb7899a7ef8fd1fe9785f47f03b9711a7 (patch)
treeabb1c7c00f35a16f9d15ebf1c798621b002bd530 /examples
parent8753f053f6643700fa683de86bb08bdfd50f2e79 (diff)
fix divide by zero in the scroll percentage calculation
Diffstat (limited to 'examples')
-rw-r--r--examples/config/config2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/config/config b/examples/config/config
index 24d4561..8dc6c2a 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -91,7 +91,7 @@ set download_handler = sync_spawn @scripts_dir/download.sh
#@on_event CONFIG_CHANGED print Config changed: %1 = %2
# Scroll percentage calculation
-@on_event SCROLL_VERT set scroll_message = \@<(function(){var p='--';if(%3<=%4){p=(%1/(%3-%4));p=Math.round(10000*p)/100;};return p+'%';})()>\@
+@on_event SCROLL_VERT set scroll_message = \@<(function(){var p='--';if(%3<%4){p=(%1/(%3-%4));p=Math.round(10000*p)/100;};return p+'%';})()>\@
# === Behaviour and appearance ===============================================