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

Avoid empty clientX and clientY values when dragging marker in mobile… #1208

Merged
merged 2 commits into from
Nov 1, 2022

Conversation

wvddrss
Copy link
Contributor

@wvddrss wvddrss commented Jul 14, 2022

On mobile safari dragging a Marker gave an error.
When digging into the code I saw that it calls:
this._map.mouseEventToContainerPoint(e.originalEvent);
But originalEvent did not contain a clientX and clientY property.
In the call _simulateMouseDownEvent I've used the later declared first touch event, which has a ClientX|Y value.

@Falke-Design
Copy link
Collaborator

Falke-Design commented Oct 31, 2022

I think _simulateMouseUpEvent should have the same workaround

@codeofsumit codeofsumit merged commit adda489 into geoman-io:develop Nov 1, 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

Successfully merging this pull request may close these issues.

Markers cannot be moved using touch screen
3 participants