8000 fix(usePointer): add `pointerup` event for `pressure` field (#3217) · vueuse/vueuse@ee425ff · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit ee425ff

Browse files
cunzaizhuyiantfu
andauthored
fix(usePointer): add pointerup event for pressure field (#3217)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent e755653 commit ee425ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/usePointer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function usePointer(options: UsePointerOptions = {}) {
7676

7777
if (target) {
7878
const listenerOptions = { passive: true }
79-
useEventListener(target, ['pointerdown', 'pointermove'], handler, listenerOptions)
79+
useEventListener(target, ['pointerdown', 'pointermove', 'pointerup'], handler, listenerOptions)
8080
useEventListener(target, 'pointerleave', () => isInside.value = false, listenerOptions)
8181
}
8282

0 commit comments

Comments
 (0)
0