You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by johannes-z October 22, 2024
Hello! I've been trying out excalibur.js a little over last few days, but hit a problem with event handlers I couldn't figure out using the docs and github issues.
I implemented drag&drop panning in the scene (think grand strategy game), using https://excaliburjs.com/docs/pointers/#event-handlers. In that scene I render an actor that has a click handler pointerdown like this: https://excaliburjs.com/docs/pointers#handling-pointer-events-on-actors. However, there is no way to stop that event from bubbling up to the scene, so the event handler for drag&drop panning also always fires. I tried evt.nativeEvent.stopPropagation() etc., but it didn't change anything.
Thanks!
The text was updated successfully, but these errors were encountered:
eonarheim
added
the
bug
This issue describes undesirable, incorrect, or unexpected behavior
label
Oct 23, 2024
Bug, we should be able to
.cancel()
and an event and have it stop bubbling at the top most pointer event handlerDiscussed in #3249
Originally posted by johannes-z October 22, 2024
Hello! I've been trying out excalibur.js a little over last few days, but hit a problem with event handlers I couldn't figure out using the docs and github issues.
I implemented drag&drop panning in the scene (think grand strategy game), using https://excaliburjs.com/docs/pointers/#event-handlers. In that scene I render an actor that has a click handler
pointerdown
like this: https://excaliburjs.com/docs/pointers#handling-pointer-events-on-actors. However, there is no way to stop that event from bubbling up to the scene, so the event handler for drag&drop panning also always fires. I triedevt.nativeEvent.stopPropagation()
etc., but it didn't change anything.Thanks!
The text was updated successfully, but these errors were encountered: