3

I have google map and some overlay. JS Fiddle

Map has registered click Listener and overlay div has registered click DomListener.

When I click on over div, I do not want event to be propagated to map. I'm using event.stopPropagation. All works with mouse.

But when I switch to some touch device - using chrome dev tools, both events are called.

How can I stop this propagation?

Vlado
  • 1,052
  • 10
  • 8
  • Check this SO question [11994833](http://stackoverflow.com/questions/11994833/event-preventdefault-not-canceling-link-direction-in-jquery-mobile) and [14530734](http://stackoverflow.com/questions/14530734/handle-both-mouse-and-touch-events-on-touch-screens) if it can help you. – KENdi Sep 08 '16 at 15:20
  • hello @Vlado can you please update solution here – SourabhKus Dec 16 '17 at 09:20
  • Found the answer here: https://stackoverflow.com/questions/47863475/how-to-stoppropagation-of-touch-event-on-overlay-googlemap – Joao Mar 06 '18 at 23:07

0 Answers0