Skip to content

fix: DragRect middle control no longer depends on mouse deltas - #730

Open
PysKa-Ratzinger wants to merge 1 commit into
epezent:masterfrom
PysKa-Ratzinger:develop
Open

PysKa-Ratzinger wants to merge 1 commit into
epezent:masterfrom
PysKa-Ratzinger:develop

Conversation

@PysKa-Ratzinger

Copy link
Copy Markdown
Contributor

If the user is doing any kind of coordinate manipulation on their side, like rounding the positions to the nearest integer coordinates, then the drag operation using mouse deltas will only work if their mouse moves at least that distance in a single frame, which results in the mouse cursor position diverging from the drag point.

By setting the rectangle's center at the cursor's center while held, then this problem disappears.

If the user is doing any kind of coordinate manipulation on their side,
like rounding the positions to the nearest integer coordinates, then the
drag operation using mouse deltas will only work if their mouse moves at
least that distance in a single frame.

By setting the rectangle at the cursor's center while held, then this
problem disappears.
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.

1 participant