summaryrefslogtreecommitdiffstats
path: root/web/js/010-control.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/010-control.js')
-rw-r--r--web/js/010-control.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/js/010-control.js b/web/js/010-control.js
index 1c0478d..2975049 100644
--- a/web/js/010-control.js
+++ b/web/js/010-control.js
@@ -348,6 +348,18 @@ $(document).ready(function() {
}
return true;
});
+ $(document).mousewheel(function(event, delta) {
+ if (current_photo_cache == null)
+ return true;
+ if (delta < 0) {
+ window.location.href = $("#next").attr("href");
+ return false;
+ } else if (delta > 0) {
+ window.location.href = $("#back").attr("href");
+ return false;
+ }
+ return true;
+ });
$("#photo-box").mouseenter(function() {
$("#photo-links").stop().fadeTo("slow", 0.50).css("display", "inline");
});