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