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
Openlayers 4 Draw interaction removeLastPoint on a touch device #7308
Comments
I made a workaround via styles and some editing attribute. Haven't figured out to handle it with a polygon.
|
2018 bug still present |
We are happy to accept a pull request with a fix. |
Tell me please, what is this code? |
I lack understanding of the process to modify code I Change the code in function removeLastPoint for type LineString:
to
But the last point in coordinate - is a pointer not a point? How to fix it? If i move the last coordinate to last-1 coordinate, that`s removes ok - but when user add point by touch, i have duplicate the points |
I added yesterday a new ask on StackOverflow about that removeLastPoint() problem. Maybe someone will help me with that? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I tried to use the function ol.interaction.Draw.removeLastPoint() on a touch device during a feature creation. The method works correctly, but the "cursor" point remains on the last position. After another touch a new point is created correctly. This behaviour is logical in a browser, because when I move with a mouse and the cursor position is changing and the point below it as well, however on a touch device it is not possible. I am not able to remove this pointer position/point after removeLastPoint(). A user might be confused, that he removes a point and nothing change until he touches the screen.
The text was updated successfully, but these errors were encountered: