blockly > WorkspaceSvg > getDragTarget
WorkspaceSvg.getDragTarget() method
Returns the drag target the pointer event is over.
Signature:
getDragTarget(e: PointerEvent | Coordinate): IDragTarget | null;
Parameters
Parameter | Type | Description |
|---|---|---|
e | PointerEvent | Coordinate | Pointer move event or a workspace coordinate. |
Returns:
IDragTarget | null
Null if not over a drag target, or the drag target the event is over.