-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
"pointerout" interaction event triggers after disableInteractive()
#5828
Comments
Reproducible even with such a simple example: This happens because disableInteractive() method sets Although a GameObject with |
This issue also applies to at least POINTER_OUT, DRAG_END, DRAG_ENTER and DRAG_LEAVE events. I've updated CodeSandbox to reflect these events. |
Fix #5828, improve GameObject#disableInteractive() and InputPlugin#disable()
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the |
Version
3.55.2
Win 10
Opera 78.0.4093.184 (only tested here)
Description
I have a polygon
GameObject
withsetInteractive()
and a fewon()
events.Events trigger fine, except that the "pointerout" event still triggers once after I call
disableInteractive()
.This is probably easier to understand by looking at the code.
If I am missing something obvious then I am truly sorry.
Problem goes away if I call
removeAllListeners()
afterdisableInteractive()
.Example Test Code
The text was updated successfully, but these errors were encountered: