You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
imabp
changed the title
Drag Plugin Gaps: check for meta key to avoid page scrolling
Drag Plugin Gaps: check for CMD(meta) key to avoid page scrolling
Jul 12, 2024
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.
The text was updated successfully, but these errors were encountered: