Skip to content

Commit

Permalink
fix: remove pointercancel
Browse files Browse the repository at this point in the history
  • Loading branch information
wiidede committed Oct 19, 2023
1 parent 5e92296 commit e6cfc0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RangeThumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function onPointerMove(e: PointerEvent) {
async function onPointerUp(e: PointerEvent) {
window.removeEventListener('pointermove', onPointerMove)
window.removeEventListener('pointerup', onPointerUp)
window.removeEventListener('pointercancel', onPointerUp)
// window.removeEventListener('pointercancel', onPointerUp)
if (!containerRef?.value || props.disabled) {
emits('moveDone')
return
Expand All @@ -83,7 +83,7 @@ function onPointerDown(e: PointerEvent) {
e.stopPropagation()
window.addEventListener('pointermove', onPointerMove)
window.addEventListener('pointerup', onPointerUp)
window.addEventListener('pointercancel', onPointerUp)
// window.addEventListener('pointercancel', onPointerUp)
}
</script>

Expand Down

0 comments on commit e6cfc0d

Please sign in to comment.