blockly > WorkspaceSvg > getDragTarget
WorkspaceSvg.getDragTarget() method
Returns the drag target at the given point.
Signature:
getDragTarget(point: PointerEvent | Coordinate): IDragTarget | null;
Parameters
Parameter | Type | Description |
|---|---|---|
point | PointerEvent | Coordinate | A pointer event, or a point in client/viewport coordinates. |
Returns:
IDragTarget | null
Null if not over a drag target, or the drag target at that point.