Skip to content

Commit b5b5b58

Browse files
author
Alex
committed
Stopped click events propogating to map
1 parent 0c78958 commit b5b5b58

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/internal.js

+11
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,17 @@ export class Internal {
217217
},
218218
false
219219
);
220+
221+
evt.target.addEventListener(
222+
'pointerup',
223+
{
224+
handleEvent: function(e) {
225+
e.stopPropagation(); //Stop pointerup event propogating to map (openlayers simulates a map click on pointer up)
226+
evt.target.removeEventListener(e.type, this, false);
227+
},
228+
},
229+
false
230+
);
220231
}
221232

222233
setItemListener(li, index) {

0 commit comments

Comments
 (0)