davidfig/pixi-viewport

Incompatibility with viewport.drag() in pixi.js v5.0.2

Closed this issue · 5 comments

tzy502 commented

When using version 5.0.2, the code viewport.drag().pinch().wheel().decelerate() in the demo does not enable dragging functionality. I had to roll back to version 5.0.1 in order to make it work properly.

Which version of a pixijs are you using?

tzy502 commented

7.1.4

It seems to be related to the changes which were made in pixijs 7.2, where displayObject.interactive = true was deprecated, and 5.2 version of this library is transfered from displayObject.interactive = true to displayObject.eventMode = "static", which means that if you are using pixijs < 7.2 and viewport 5.2 interaction won't work properly

You can see those changes listed here

https://github.com/pixijs/pixijs/releases/tag/v7.2.0

tzy502 commented

thank you