Skip to content

Function: useGetPointerPosition

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

Returns

fn

▸ («destructured»): Object

Parameters
NameType
«destructured»UseDragEvent
Returns

Object

NameType
xnumber
xSnappednumber
ynumber
ySnappednumber

Released under the MIT License.