Skip to content

Commit

Permalink
fix(usePointer): add pointerup event for pressure field (#3217)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
cunzaizhuyi and antfu committed Jul 30, 2023
1 parent e755653 commit ee425ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/usePointer/index.ts
Expand Up @@ -76,7 +76,7 @@ export function usePointer(options: UsePointerOptions = {}) {

if (target) {
const listenerOptions = { passive: true }
useEventListener(target, ['pointerdown', 'pointermove'], handler, listenerOptions)
useEventListener(target, ['pointerdown', 'pointermove', 'pointerup'], handler, listenerOptions)
useEventListener(target, 'pointerleave', () => isInside.value = false, listenerOptions)
}

Expand Down

0 comments on commit ee425ff

Please sign in to comment.