summaryrefslogtreecommitdiff
path: root/src/journal/browse.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/browse.html')
-rw-r--r--src/journal/browse.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/journal/browse.html b/src/journal/browse.html
index 5a161a13fb..d5e0717c53 100644
--- a/src/journal/browse.html
+++ b/src/journal/browse.html
@@ -419,10 +419,21 @@
}
}
+ function onMouseWheel(event) {
+ if (event.detail < 0 || event.wheelDelta > 0)
+ entriesLoadPrevious();
+ else
+ entriesLoadNext();
+ }
+
machineLoad();
entriesLoad("");
showNEntries(getNEntries());
document.onkeyup = onKeyUp;
+
+ logs = document.getElementById("tablelogs");
+ logs.addEventListener("mousewheel", onMouseWheel, false);
+ logs.addEventListener("DOMMouseScroll", onMouseWheel, false);
</script>
</body>
</html>