Skip to content

Commit

Permalink
fix: moveDone not trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
wiidede committed Oct 20, 2023
1 parent 4dbc9f9 commit d98ff86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RangeThumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function onPointerMove(e: PointerEvent) {
deleting.value = shouldDelete(props.vertical ? e.clientX : e.clientY)
}
async function onPointerUp(e: PointerEvent) {
function onPointerUp(e: PointerEvent) {
window.removeEventListener('pointermove', onPointerMove)
window.removeEventListener('pointerup', onPointerUp)
window.removeEventListener('pointercancel', onPointerUp)
Expand All @@ -97,7 +97,6 @@ async function onPointerUp(e: PointerEvent) {
deleting.value = false
emits('delete')
}
await nextTick()
}
emits('moveDone')
}
Expand Down

0 comments on commit d98ff86

Please sign in to comment.