Skip to content

Fix points jumping when dragging starts in the Polygon2D editor #107933

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nikitf777
Copy link
Contributor

@Nikitf777 Nikitf777 commented Jun 24, 2025

Currently, when you start dragging a vertex in the Polygon2D editor, it immidiately jumps because it uses the position of the points as the drag_from, instead of the position, where you acutally start dragging. It prevents precise editing when you need to shift a point a little bit.

Before

points-jumping.mp4

This PR fixes it by just using the position of you mouse as the drag_from. Now you can move vertices smoothly:

point-doesn.t-jump.mp4

@Nikitf777 Nikitf777 requested a review from a team as a code owner June 24, 2025 12:23
@AThousandShips AThousandShips added this to the 4.5 milestone Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants