diff --git a/src/core/Mouse.js b/src/core/Mouse.js index 913e9d8..82e5fd5 100644 --- a/src/core/Mouse.js +++ b/src/core/Mouse.js @@ -116,16 +116,15 @@ var Common = require('../core/Common'); Mouse.setElement = function(mouse, element) { mouse.element = element; - element.addEventListener('mousemove', mouse.mousemove); - element.addEventListener('mousedown', mouse.mousedown); - element.addEventListener('mouseup', mouse.mouseup); + element.addEventListener('mousemove', mouse.mousemove, { passive: true }); + element.addEventListener('mousedown', mouse.mousedown, { passive: true }); + element.addEventListener('mouseup', mouse.mouseup, { passive: true }); - element.addEventListener('mousewheel', mouse.mousewheel); - element.addEventListener('DOMMouseScroll', mouse.mousewheel); - - element.addEventListener('touchmove', mouse.mousemove); - element.addEventListener('touchstart', mouse.mousedown); - element.addEventListener('touchend', mouse.mouseup); + element.addEventListener('wheel', mouse.mousewheel, { passive: false }); + + element.addEventListener('touchmove', mouse.mousemove, { passive: false }); + element.addEventListener('touchstart', mouse.mousedown, { passive: false }); + element.addEventListener('touchend', mouse.mouseup, { passive: false }); }; /**