allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 517 forks source link

custom-marker tap is not working inside custom marker #860

Open tannubansal opened 6 years ago

tannubansal commented 6 years ago

I am using ng-map for creating custom map marker. There are few buttons inside custom markers. The ng-click is not working on mobile. It works fine on mobile version from chrome (using developers console) but does not work with actual mobile.

solcre-gr commented 6 years ago

could you solve it?

juan9118 commented 6 years ago

Hi @tannubansal you solved it?

tannubansal commented 6 years ago

@juan9118 No I am not able to solve it yet. What I found out is that it works with info-window but not custom-marker. If anyone has any solution for it, please let me know

solcre-gr commented 6 years ago

I was able to "solve" this, using hammerjs, and the hm-tap directive.

tannubansal commented 6 years ago

Can you provide the example for the same on how we can solve this

allenhwkim commented 6 years ago

Have you tried this solution? I haven't tried it yet, which make it as not a responsible answer. sorry. https://stackoverflow.com/questions/25032237/ng-click-on-firing-on-mobile-or-tablet-devices https://docs.angularjs.org/api/ngTouch