How can I monitor the operation completed by startDragging and dragging over?
How can I monitor the operation completed by startDragging and dragging over? I want to do something after dragging is over
We don't have that yet :(
if you mean the window dragging, then you should listen to the move event
if you mean the window dragging, then you should listen to the move event
I want to do something when the window drag ends, something like HTML's mouseup event
You could debounce the move event listener to know when the user stops moving it.
You could debounce the move event listener to know when the user stops moving it.
It's a great idea!!! I'll try, thanks.
Found a scene, what should I do if I keep dragging but not moving? My solution is to add the detection of whether the left mouse button is pressed to determine whether it is in a dragging state, but I don't know if there is such an API
The OS doesn't give us enough information to know when the window dragging ends. As we suggested earlier, you should listen to the move event and debounce it.