ShukantPal / pixi-essentials

The best goodies for performant, enterprise-level applications built on PixiJS
https://api.pixijs.io
MIT License
285 stars 37 forks source link

[Transformer] Handles lose focus when mouse isn't on them #73

Closed Aidymouse closed 1 year ago

Aidymouse commented 1 year ago

The transformer works fine but only when the mouse stays within the handles. Any ideas what might be causing this?

I do have some mouse events on the stage, could that be doing something weird?

ShukantPal commented 1 year ago

https://user-images.githubusercontent.com/22450567/222942747-7a827253-7c93-43c1-b3ae-69ecfb371164.mov

This is because of how PixiJS 7's EventSystem has changed pointer events − such that they only trigger. I'm open to a PR fixing this − probably would have to inject the stage into the transformer, so it uses that for pointermove events.

bigtimebuddy commented 1 year ago

We recently added globalpointermove event for just this purpose. Will be in 7.2.0

rnike commented 1 year ago

@ShukantPal I've made a PR for this issue, using the solution mentioned by @bigtimebuddy

vhaine-tb commented 1 year ago

Hey guys, did changing for globalpointermove worked for you? I've ported the code to a POC, and the bug remains.

@ShukantPal @bigtimebuddy, any tips on how to fix it? I can do a PR as soon as I can fix it!