mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 01:41:44 +00:00
setupHoldToClick calls stop on unmount
This commit is contained in:
parent
3682582fc3
commit
563bf76bee
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,7 @@ import {
|
|||
DefineComponent,
|
||||
defineComponent,
|
||||
isRef,
|
||||
onUnmounted,
|
||||
PropType,
|
||||
ref,
|
||||
Ref,
|
||||
|
@ -113,6 +114,8 @@ export function setupHoldToClick(
|
|||
}
|
||||
}
|
||||
|
||||
onUnmounted(stop);
|
||||
|
||||
return { start, stop, handleHolding };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue