File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,18 @@ export function addHandler (
65
65
)
66
66
}
67
67
68
+ // normalize click.right and click.middle since they don't actually fire
69
+ // this is technically browser-specific, but at least for now browsers are
70
+ // the only target envs that have right/middle clicks.
71
+ if ( name === 'click' ) {
72
+ if ( modifiers . right ) {
73
+ name = 'contextmenu '
74
+ delete modifiers . right
75
+ } else if ( modifiers . middle ) {
76
+ name = 'mouseup'
77
+ }
78
+ }
79
+
68
80
// check capture modifier
69
81
if ( modifiers . capture ) {
70
82
delete modifiers . capture
@@ -80,18 +92,6 @@ export function addHandler (
80
92
name = '&' + name // mark the event as passive
81
93
}
82
94
83
- // normalize click.right and click.middle since they don't actually fire
84
- // this is technically browser-specific, but at least for now browsers are
85
- // the only target envs that have right/middle clicks.
86
- if ( name === 'click' ) {
87
- if ( modifiers . right ) {
88
- name = 'contextmenu '
89
- delete modifiers . right
90
- } else if ( modifiers . middle ) {
91
- name = 'mouseup'
92
- }
93
- }
94
-
95
95
let events
96
96
if ( modifiers . native ) {
97
97
delete modifiers . native
You can’t perform that action at this time.
0 commit comments