Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit 255b547

Browse files
committed
Make sure event.bubbles is explicitly set when dispatching events
Laziness with enter/leave usage and shared pointer event template clones lead to missing downs. Fixes googlearchive/PointerGestures#22
1 parent e923472 commit 255b547

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dispatcher.js

+4
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,15 @@
138138
},
139139
// EVENTS
140140
down: function(inEvent) {
141+
inEvent.bubbles = true;
141142
this.fireEvent('pointerdown', inEvent);
142143
},
143144
move: function(inEvent) {
145+
inEvent.bubbles = true;
144146
this.fireEvent('pointermove', inEvent);
145147
},
146148
up: function(inEvent) {
149+
inEvent.bubbles = true;
147150
this.fireEvent('pointerup', inEvent);
148151
},
149152
enter: function(inEvent) {
@@ -163,6 +166,7 @@
163166
this.fireEvent('pointerout', inEvent);
164167
},
165168
cancel: function(inEvent) {
169+
inEvent.bubbles = true;
166170
this.fireEvent('pointercancel', inEvent);
167171
},
168172
leaveOut: function(event) {

0 commit comments

Comments
 (0)