Skip to content

Function: useGetPointerPosition

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

Composable that returns a function to get the pointer position

Returns

fn

▸ («destructured»): Object

Parameters
NameType
«destructured»UseDragEvent
Returns

Object

NameType
xnumber
xSnappednumber
ynumber
ySnappednumber

Released under the MIT License.