touch devices: unwanted movestart makes it hard to use contextmenu
jelhan opened this issue · comments
On touch devices it's very hard to open the contextmenu but not to trigger a movestart
event at the same time. You have to hold finger down for a short while to trigger a click
event, which opens contextmenu. It's hard not to move a little bit at the same time, especially when trying to click on an item of newly opened contextmenu. Is anybody else using Leaflet.contextmenu on touch devices?
I noticed that this is only an issue if used together with maxBounds
option. Here is a JSFiddle showing the issue: https://jsfiddle.net/pso18ewr/27/
To reproduce try to open a contextmenu with a touch device. You will notice that it's immediately closed if map is moved. This will not occur if you zoom into bouncing area (blue square). So it seems like bouncing user back causes the contextmenu to be closed.