mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-24 07:20:56 +07:00
journal: add mousewheel scrolling to browse.html
This commit is contained in:
parent
6d5f2f5803
commit
19f8efacc5
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user