Skip to content

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

Merged
merged 4 commits into from
Jan 17, 2023
Merged

Add global move events #9067

merged 4 commits into from
Jan 17, 2023

Conversation

Zyie
Copy link
Member

@Zyie Zyie commented Jan 16, 2023

This PR add 3 new events globalpointermove, globaltouchmove, and globalmousemove

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 the global.d.ts file

@Zyie Zyie changed the title Adds global move events Add global move events Jan 16, 2023
Copy link
Member

@bigtimebuddy bigtimebuddy left a 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.

Copy link
Member

@bigtimebuddy bigtimebuddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@bigtimebuddy bigtimebuddy added this to the v7.1.1 milestone Jan 17, 2023
@bigtimebuddy bigtimebuddy added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Jan 17, 2023
Zyie and others added 2 commits January 17, 2023 13:28
@bigtimebuddy bigtimebuddy merged commit 30450f6 into dev Jan 17, 2023
@bigtimebuddy bigtimebuddy deleted the feature/global-move branch January 17, 2023 15:29
@newtoncodes
Copy link

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...

@bigtimebuddy
Copy link
Member

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants