avoid pointerUptime update before calculating isDoubleClick (#1055)
This commit is contained in:
parent
73e87d8732
commit
412d4db618
1 changed files with 2 additions and 2 deletions
|
@ -54,6 +54,8 @@ export function useCanvasEvents() {
|
||||||
inputs.activePointer = undefined
|
inputs.activePointer = undefined
|
||||||
if (!inputs.pointerIsValid(e)) return
|
if (!inputs.pointerIsValid(e)) return
|
||||||
|
|
||||||
|
const isDoubleClick = inputs.isDoubleClick()
|
||||||
|
|
||||||
const info = inputs.pointerUp(e, 'canvas')
|
const info = inputs.pointerUp(e, 'canvas')
|
||||||
|
|
||||||
// On right click up
|
// On right click up
|
||||||
|
@ -62,8 +64,6 @@ export function useCanvasEvents() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const isDoubleClick = inputs.isDoubleClick()
|
|
||||||
|
|
||||||
// Release pointer capture, if any
|
// Release pointer capture, if any
|
||||||
if (e.currentTarget.hasPointerCapture(e.pointerId)) {
|
if (e.currentTarget.hasPointerCapture(e.pointerId)) {
|
||||||
e.currentTarget?.releasePointerCapture(e.pointerId)
|
e.currentTarget?.releasePointerCapture(e.pointerId)
|
||||||
|
|
Loading…
Reference in a new issue