summaryrefslogtreecommitdiff
path: root/crocoite/data
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/data')
-rw-r--r--crocoite/data/scroll.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/crocoite/data/scroll.js b/crocoite/data/scroll.js
index cf060fc..d16383c 100644
--- a/crocoite/data/scroll.js
+++ b/crocoite/data/scroll.js
@@ -1,7 +1,11 @@
(function(){
function scroll (event) {
- window.scrollBy (0, window.innerHeight/2);
- return true;
+ if (__crocoite_stop__) {
+ return false;
+ } else {
+ window.scrollBy (0, window.innerHeight/2);
+ return true;
+ }
}
function onload (event) {
window.setInterval (scroll, 200);