diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-04-14 23:03:11 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-04-14 23:04:05 -0400 |
commit | 13f4f27d4d4ff12440729ff4e738b2679371215b (patch) | |
tree | e6272e698e1080aac7f35af7ef121d7d48fadb99 /examples/config/config | |
parent | de2f2544c5d59d3974d3c77a3bcaf82bbb95a8ef (diff) |
Use the correct variable
%2 is the top of the scrollbar; %4 is the page size.
Diffstat (limited to 'examples/config/config')
-rw-r--r-- | examples/config/config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/config/config b/examples/config/config index ab7a7da..e6eac34 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!=%2){p=(%1/(%3-%2));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 =============================================== |