Skip to main content

dragged

Function dragged 

Source
pub fn dragged(event: &DragEvent, origin: Pos2) -> PointerSample
Expand description

Where a file being dragged over the canvas is, as a motion.

The browser reserves the pointer for the drag it is running, so nothing else says where the drop is about to land — and without this the editor would place what arrives wherever the pointer was last seen, before the drag began.