journal: add mousewheel scrolling to browse.html

This commit is contained in:
Kay Sievers 2012-10-10 23:59:29 +02:00 committed by Lennart Poettering
parent 6d5f2f5803
commit 19f8efacc5

View File

@ -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>