From 75791972c99e22acd02465d99e1bc6768f087b88 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Thu, 5 Jul 2018 22:49:25 -0400 Subject: [PATCH] Listen for "wheel", not "mousewheel" Oops, I was using an unsupported browser event. --- js/proximity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/proximity.js b/js/proximity.js index 0db1a7d..05c8b68 100644 --- a/js/proximity.js +++ b/js/proximity.js @@ -828,9 +828,9 @@ function registerEventHandlers() { /* MOUSE AND TOUCH EVENTS */ - window.addEventListener('mousewheel', function (e) { + window.addEventListener('wheel', function (e) { if (e.target.tagName !== 'CANVAS') return; - scrollDelta = scrollDelta + ((e.deltaY / 100) * 3); + scrollDelta = scrollDelta + e.deltaY; }); window.addEventListener('touchstart', function (e) {