Bugfix on useShapeEvents wrong key name (#459)
* onPointShape called instead of onPointerDown * Update useShapeEvents.tsx * Bugfix on useShapeEvents wrong key name Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
parent
9b7414509f
commit
4cf283e84f
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ export function useShapeEvents(id: string) {
|
|||
callbacks.onReleaseShape?.(info, e)
|
||||
callbacks.onPointerUp?.(info, e)
|
||||
},
|
||||
onPointerEnter: (e: React.PointerEvent) => {
|
||||
onPointerMove: (e: React.PointerEvent) => {
|
||||
if (!inputs.pointerIsValid(e)) return
|
||||
|
||||
e.stopPropagation()
|
||||
|
@ -75,7 +75,7 @@ export function useShapeEvents(id: string) {
|
|||
|
||||
callbacks.onPointerMove?.(info, e)
|
||||
},
|
||||
onPointerMove: (e: React.PointerEvent) => {
|
||||
onPointerEnter: (e: React.PointerEvent) => {
|
||||
if (!inputs.pointerIsValid(e)) return
|
||||
const info = inputs.pointerEnter(e, id)
|
||||
callbacks.onHoverShape?.(info, e)
|
||||
|
|
Loading…
Reference in a new issue