Open gs11118 opened 4 years ago
have you tried viewport.options.stopPropagation
or viewport.wheel()
? If the whole page is zooming, then it's likely reaching browser's default action.
I found out - use passiveWheel: true
(https://davidfig.github.io/pixi-viewport/jsdoc/global.html#ViewportOptions)
Should not zoom the whole page, just the game zoom camera. Works fine on touch devices zoom