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 ​
Name | Type |
---|---|
«destructured» | UseDragEvent |
Returns ​
Object
Name | Type |
---|---|
x | number |
xSnapped | number |
y | number |
ySnapped | number |