From 272049ab0528380e0164ac55c7d70796c638ba15 Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 18 Mar 2023 11:15:12 +0000 Subject: [PATCH] fix missing `mouse.sourceEvents.mousewheel`, closes #1146 --- src/core/Mouse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Mouse.js b/src/core/Mouse.js index 82e5fd5..f97f279 100644 --- a/src/core/Mouse.js +++ b/src/core/Mouse.js @@ -100,6 +100,7 @@ var Common = require('../core/Common'); mouse.mousewheel = function(event) { mouse.wheelDelta = Math.max(-1, Math.min(1, event.wheelDelta || -event.detail)); event.preventDefault(); + mouse.sourceEvents.mousewheel = event; }; Mouse.setElement(mouse, mouse.element);