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

Click on the middle point for optimization #205

Open
Thunder7991 opened this issue Mar 5, 2024 · 3 comments
Open

Click on the middle point for optimization #205

Thunder7991 opened this issue Mar 5, 2024 · 3 comments

Comments

@Thunder7991
Copy link

Thunder7991 commented Mar 5, 2024

image

Click on the middle point, and the two newly added points can be directly dragged . This can greatly improve the efficiency of editing and drawing polygons ,

When dragging the middle point, two new points are automatically added, and both new points can be directly dragged。

@LarryZhu-dev
Copy link

@JamesLMilner I suggest changing the onClick event at the midpoint to be triggered when keydown, rather than when keyup, so that you don't have to click before dragging

@JamesLMilner
Copy link
Owner

Thanks for raising this idea. A feature like this might be possible but requires a bit of thinking about how it works with the wider select mode without making the code harder to maintain. A feature like this would be behind a flag and which developers could opt into by turning it on. I will look into it and see if it's possible, but can't promise anything on time lines.

@Thunder7991
Copy link
Author

Thanks for raising this idea. A feature like this might be possible but requires a bit of thinking about how it works with the wider select mode without making the code harder to maintain. A feature like this would be behind a flag and which developers could opt into by turning it on. I will look into it and see if it's possible, but can't promise anything on time lines.

@JamesLMilner, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants