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

iss-1897 - Fix view rotation effects affects various view handles #1898

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MrStevns
Copy link
Member

@MrStevns MrStevns commented Jan 2, 2025

Fixes #1897 as reported on discord. The same problem also existed with the overlay handles. prior to this fix.

The code getViewScaleInverse assumes the m11 value is a scaling matrix but that's not guaranteed! We see the problem occur when the view has been rotated, which changes the matrix type so that it's no longer a pure scale factor. The fix is to create a new scaling matrix from the mScaling property and inverse that instead.
@MrStevns MrStevns force-pushed the iss-1897-fix-view-handle-dragging branch from f98f084 to d5064f1 Compare January 2, 2025 11:14
@MrStevns MrStevns changed the title The code getViewScaleInverse assumes the m11 value is a scaling matri… iss-1897 - Fix view rotation effects affects various view handles Jan 2, 2025
@MrStevns MrStevns added the Bug label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

🐛 [BUG] - Canvas rotation affects view handles
1 participant