Skip to content

Commit b163937

Browse files
jairoblattantfu
andauthored
feat: add pointers event (Akryum#855)
Co-authored-by: Anthony Fu <[email protected]>
1 parent 3922f06 commit b163937

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/floating-vue/src/util/events.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ export const SHOW_EVENT_MAP = {
33
focus: 'focus',
44
click: 'click',
55
touch: 'touchstart',
6+
pointer: 'pointerdown',
67
}
78

89
export const HIDE_EVENT_MAP = {
910
hover: 'mouseleave',
1011
focus: 'blur',
1112
click: 'click',
1213
touch: 'touchend',
14+
pointer: 'pointerup',
1315
}

0 commit comments

Comments
 (0)