aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-03 16:32:30 -0700
committerfriendica <info@friendica.com>2014-08-03 16:32:30 -0700
commit464b2b65702e7a84df6632240377d1920233d495 (patch)
treeb61125aeddab0bab0b90fbf0333461e9ad55a661 /view
parent44ee18b810b8671c9b522b06a5d8d0e62a3bef00 (diff)
downloadvolse-hubzilla-464b2b65702e7a84df6632240377d1920233d495.tar.gz
volse-hubzilla-464b2b65702e7a84df6632240377d1920233d495.tar.bz2
volse-hubzilla-464b2b65702e7a84df6632240377d1920233d495.zip
allow the PageDown key to trigger auto scroll - so if you use this key to page through the content you'll never reach the end (until you run out of content).
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index eeee9e3ab..8e05d6776 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -276,6 +276,19 @@
return false;
}
}
+ if(event.keyCode == '34') {
+ if((pageHasMoreContent) && (! loadingPage)) {
+ $('#more').hide();
+ $('#no-more').hide();
+
+ next_page++;
+ scroll_next = true;
+ loadingPage = true;
+ liveUpdate();
+ return true;
+ }
+ }
+
if(event.keyCode == '19' || (event.ctrlKey && event.which == '32')) {
event.preventDefault();
if(stopped == false) {