Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch on map buttons triggers the default behavior #85

Open
ucin3d opened this issue Jun 21, 2022 · 0 comments
Open

Touch on map buttons triggers the default behavior #85

ucin3d opened this issue Jun 21, 2022 · 0 comments

Comments

@ucin3d
Copy link

ucin3d commented Jun 21, 2022

We have implemented 'Leaflet.GestureHandling' in a map and it shows the warning overlay with text as planned, but somehow it is also triggered when touching/clicking on the UI buttons on mobile (iOS). We are using 'Leaflet.EasyButton for the buttons.

We thought that by adding the following classes from EasyButton to the 'ignorelist' would make Leaflet.GestureHandling work but it did not:

       var ignoreList = [	
         ...	   
    "button-state",
        "easy-button-button",
        "easy-button-container",
         ...			

Any inputs on which step we may be missing?

@ucin3d ucin3d changed the title Touch/click on map buttons triggers the warning overlay and text Touch/click on map buttons triggers the default behavior Jun 21, 2022
@ucin3d ucin3d changed the title Touch/click on map buttons triggers the default behavior Touch on map buttons triggers the default behavior Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant