-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Add global move events #9067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add global move events #9067
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add documentation for these events? There are event docs somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Co-authored-by: Tianlan Zhou <bobby825@126.com>
This is crazy slow on spine animations guys! You should revert this ASAP or make a default setting to disable it. Animations with many meshes have to be constantly walked through hundreds of times when the mouse moves on something. There is absolutely no point of doing this. I don't have a single pointer or touche event in my application and I had to debug this a whole day to figure out why my animations are running 20 FPS when the mouse is moving... |
@newtoncodes Thanks for reporting. Can you create a new issue so we can track this? You on the latest 7.2.0 prerelease I assume? |
This PR add 3 new events
globalpointermove
,globaltouchmove
, andglobalmousemove
These move events behave like the old interaction system, and is the equivalent of setting
events.rootBoundary.moveOnAll
This PR also fixes an issue with
displayObject.addEventListener
types not being correctly assigned in theglobal.d.ts
file