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

Fix blueprint container not handling right clicks correctly while moving a blueprint #26661

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

frenzibyte
Copy link
Member

While a blueprint is being dragged, pressing right click would trigger a prepareSelectionMovement call, which incorrectly changes the movementBlueprintsOriginalPositions array, causing the next drag event to calculate the movement delta incorrectly, leading to the blueprint jumping to an unexpected position.

The guard added here is intentionally checking only for Right mouse buttons, to match with the other guard in OnDragStart.

Before:

CleanShot.2024-01-22.at.04.36.01.mp4

After:

CleanShot.2024-01-22.at.04.50.07.mp4

@peppy peppy merged commit f6fa965 into ppy:master Jan 22, 2024
@frenzibyte frenzibyte deleted the fix-mouse-blueprint branch January 22, 2024 08:34
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.

In the skin editor, right-clicking an object when holding it randomly teleports it
2 participants