pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

Use viewport parent's local coordinate system rather than global

Open lunarraid opened this issue 1 year ago • 0 comments

Addresses https://github.com/davidfig/pixi-viewport/issues/49

Currently this library assumes that the Viewport exists in global coordinate space, i.e, on the root stage or in an unscaled container on the stage, and it breaks when in a transformed container. This attempts to address this by getting the coordinates in the local space of the viewport's parent instead of global coordinates.

lunarraid avatar Sep 18 '23 15:09 lunarraid