From 7195a41598291e3482c402c6f4e169c39a601529 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Mon, 29 Jan 2024 02:32:50 +0100 Subject: [PATCH] adjust wheel delta with known data for firefox --- htdocs/lib/wheelDelta.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/wheelDelta.js b/htdocs/lib/wheelDelta.js index 1dbe2549..f3ff847a 100644 --- a/htdocs/lib/wheelDelta.js +++ b/htdocs/lib/wheelDelta.js @@ -17,5 +17,6 @@ function wheelDelta(evt) { // chrome and webkit-based browsers seem to correlate one tick of the wheel to 120 pixels. return evt.deltaY / 120; } - return evt.deltaY; + // firefox seems to scroll at an interval of 6 lines per wheel tick + return evt.deltaY / 6; }