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 173 forks source link

Drag Plugin Gaps: check for CMD(meta) key to avoid page scrolling #492

Open imabp opened 1 month ago

imabp commented 1 month ago

Problem:

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.

imabp commented 1 month ago

@ShukantPal @davidfig @Aeolun please check this requirement