Click events for Mouse

42 views
Skip to first unread message

naas...@gmail.com

unread,
Nov 15, 2021, 12:47:49 PM11/15/21
to Crafty
I noticed that in my application using Crafty 0.9.0, the Click events don't quite work right, at least when paired with drag events.

For instance, I have two Mouse entities: Y is a drag handle to do rotations, and Z receives click events. If I mouse down on the drag handle Y and then move the mouse to Z and release the mouse button over Z, Z triggers a click event even though I didn't mouse down on it. The behaviour suggests that the mouse up handler isn't tracking whether mouse down had clicked the same entity.

Not sure if I missed something in the setup or if there's some way around it.
Reply all
Reply to author
Forward
0 new messages