diff --git a/js/rpg_core/TouchInput.js b/js/rpg_core/TouchInput.js index e4c42033..152d3713 100644 --- a/js/rpg_core/TouchInput.js +++ b/js/rpg_core/TouchInput.js @@ -250,7 +250,7 @@ TouchInput._setupEventHandlers = function() { document.addEventListener('mousedown', this._onMouseDown.bind(this)); document.addEventListener('mousemove', this._onMouseMove.bind(this)); document.addEventListener('mouseup', this._onMouseUp.bind(this)); - document.addEventListener('wheel', this._onWheel.bind(this)); + document.addEventListener('wheel', this._onWheel.bind(this), isSupportPassive ? {passive: false} : false); document.addEventListener('touchstart', this._onTouchStart.bind(this), isSupportPassive ? {passive: false} : false); document.addEventListener('touchmove', this._onTouchMove.bind(this), isSupportPassive ? {passive: false} : false); document.addEventListener('touchend', this._onTouchEnd.bind(this));