Just wondering how to fix this problem.
I’ve got a button in which I startDrag() when the mouse is down on the button. When the mouse is up, stopDrag() is called. So just standard simple dragging.
Problem is, when I drag all the way so that the cursor is off the stage, when I come back on the stage, whether my mouse is down or not, that object is still being dragged. This is a problem when I drag the object, then release off the stage, and come back onto the stage without the mouse button being held down and the object still drags.
How do I fix it so that once I leave the stage, the object which I was dragging loses focus?