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

Dragging map on mobile triggers SelectFeature #1415

Open
allesmi opened this issue Dec 8, 2014 · 1 comment
Open

Dragging map on mobile triggers SelectFeature #1415

allesmi opened this issue Dec 8, 2014 · 1 comment

Comments

@allesmi
Copy link

allesmi commented Dec 8, 2014

Suppose you have a map with a background layer and a WFS feature layer.

In a desktop web browser it is possible to click on the feature to trigger the SelectFeature handler as well as starting to drag the map without calling the handler.
On mobile a drag always triggered the SelectFeature handler.

Investigating the issue we found out that the event is triggered at touchstart.

We worked around this issue by replicating the behaviour of another OL component where we evaluate at touchend if it is a click or a drag.

@ahocevar
Copy link
Member

Any chance to get a pull request with your workaround?

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

Successfully merging a pull request may close this issue.

2 participants