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

[Bug] Deletion of the last point "loops" a LineString and delets other endpoint #437

Open
Sarrasor opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Sarrasor
Copy link

Describe the bug
In LineString select mode, deletion of the last point might loop the LineString. In addition, another endpoint is also deleted. An example can be seen in the video below

Terra Draw npm version
The version deployed on https://terradraw.io/ on Jan 22, 2025

To Reproduce
Create a LineString, enter the selection mode, and delete the last point with a right-click. An example is in the video below

Expected behavior
Only the last point should be deleted when right-clicked similar to how midpoint deletion works

Video
https://github.com/user-attachments/assets/c69ea1cd-0025-450f-bffc-7014834ddd18

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Browser Chrome
  • Version 130.0.6723.116
@Sarrasor Sarrasor added the bug Something isn't working label Jan 22, 2025
@Sarrasor
Copy link
Author

In addition, after the looping behavior, those points become somehow "linked", so if I delete one, the other also gets deleted. To reproduce, try splitting the loop point by dragging it, and then deleting one of the endpoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant