Mac users natively uses Cmd + Scroll to zoom in and zoom out via Wheel Plugin
But the following condition in the pixi-viewport Drag plugin implementation, restricts to zoom/in out using CMD + Scroll. Currently, pressing cmd+scroll have page scrolling effect instead of zooming.
Problem:
Cmd + Scroll
to zoom in and zoom out via Wheel PluginCMD + Scroll
. Currently, pressing cmd+scroll have page scrolling effect instead of zooming.Proposal is to change the condition
FROM: (Current Implementation)
if (!wheel || (!wheel.options.wheelZoom && !event.ctrlKey))
TO: (Proposed Condition)
if (!wheel || (!wheel.options.wheelZoom && !(event.ctrlKey || event.metaKey)))
Thanks. A kind request to @davidfig , other respected contributors, maintainers to check the problem statement and their thoughts on it.