drag-action: Capture stage leave
If we are dragging, we don't want the drag handle to emit a ::leave-event even if the pointer left the stage.
This commit is contained in:
parent
1ec577438e
commit
9ab83cebfd
@ -267,6 +267,11 @@ on_captured_event (ClutterActor *stage,
|
|||||||
emit_drag_end (action, actor, event);
|
emit_drag_end (action, actor, event);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CLUTTER_LEAVE:
|
||||||
|
if (priv->in_drag)
|
||||||
|
return TRUE;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user