Skip to content

Commit 6593308

Browse files
author
Nathan Bolton
committed
Bug fix: wheel event should not be passive
1 parent f28a3fd commit 6593308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rpg_core/TouchInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ TouchInput._setupEventHandlers = function() {
250250
document.addEventListener('mousedown', this._onMouseDown.bind(this));
251251
document.addEventListener('mousemove', this._onMouseMove.bind(this));
252252
document.addEventListener('mouseup', this._onMouseUp.bind(this));
253-
document.addEventListener('wheel', this._onWheel.bind(this));
253+
document.addEventListener('wheel', this._onWheel.bind(this), isSupportPassive ? {passive: false} : false);
254254
document.addEventListener('touchstart', this._onTouchStart.bind(this), isSupportPassive ? {passive: false} : false);
255255
document.addEventListener('touchmove', this._onTouchMove.bind(this), isSupportPassive ? {passive: false} : false);
256256
document.addEventListener('touchend', this._onTouchEnd.bind(this));

0 commit comments

Comments
 (0)