Skip to content

Function: useGetPointerPosition

useGetPointerPosition(): (__namedParameters: UseDragEvent, snapGrid?: SnapGrid) => { x: number ; xSnapped: number ; y: number ; ySnapped: number }

Returns

fn

▸ («destructured», snapGrid?): Object

Parameters
NameType
«destructured»UseDragEvent
snapGrid?SnapGrid
Returns

Object

NameType
xnumber
xSnappednumber
ynumber
ySnappednumber

Released under the MIT License.