diff --git a/dist/iwmlib.pixi.js b/dist/iwmlib.pixi.js index db33c04..88c8bf1 100644 --- a/dist/iwmlib.pixi.js +++ b/dist/iwmlib.pixi.js @@ -13758,11 +13758,11 @@ if (this.opts.app) { const app = this.opts.app; app.view.addEventListener('mousewheel', event => { - event.preventDefault(); const bounds = this.mask ? this.mask.getBounds() : this.getBounds(); const x = event.clientX - app.view.getBoundingClientRect().left; const y = event.clientY - app.view.getBoundingClientRect().top; if (bounds.contains(x, y)) { + event.preventDefault(); this.emit('scroll', event); } }); diff --git a/lib/pixi/list.js b/lib/pixi/list.js index 530c9d8..b2beb6b 100644 --- a/lib/pixi/list.js +++ b/lib/pixi/list.js @@ -107,11 +107,11 @@ export default class List extends PIXI.Container { if (this.opts.app) { const app = this.opts.app app.view.addEventListener('mousewheel', event => { - event.preventDefault() const bounds = this.mask ? this.mask.getBounds() : this.getBounds() const x = event.clientX - app.view.getBoundingClientRect().left const y = event.clientY - app.view.getBoundingClientRect().top if (bounds.contains(x, y)) { + event.preventDefault() this.emit('scroll', event) } })