davidfig / pixi-viewport

A highly configurable viewport/2D camera designed to work with pixi.js
https://davidfig.github.io/pixi-viewport/
MIT License
1.04k stars 174 forks source link

Question: How to use Cmd+Scroll for zooming when on a Mac? #478

Open fakob opened 6 months ago

fakob commented 6 months ago

I have a wheelZoom setup where I am setting wheelZoom to true for scroll-wheels or false for trackpads. When it is set to false, I can either pinch zoom or use Ctrl+Scroll.

Is there any way to also allow Cmd+Scroll to be used for zooming when on a Mac? It might be simple, but I don't really see how to hook this up. Any ideas?