Listening for mouse events from other widgets

24 views
Skip to first unread message

sirst...@gmail.com

unread,
Nov 1, 2014, 11:04:40 AM11/1/14
to ozonepla...@googlegroups.com
Hi, is it possible to listen for mouse events from other widgets? Here's the problem: I'm using a library in one of my Ozone widgets that has drag-and-drop functionality. You can mouse down on a UI element, drag the mouse, and mouse up to move the element. A problem occurs though when I mouse down on an element, drag the mouse cursor outside the widget, and mouse up over a different Ozone widget. In this case, the original widget never receives a mouse up event and is left in dragging mode (because the library is unaware that the drag has ended). My guess is the second widget "swallows" the mouseup event. Is there any way around this?

Thanks,

David
Reply all
Reply to author
Forward
0 new messages