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

Make the transform cage resize about the pivot when Alt is pressed #2226

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

0HyperCube
Copy link
Member

@0HyperCube 0HyperCube commented Jan 26, 2025

As described in the voice meeting. Solves https://discord.com/channels/731730685944922173/881073965047636018/1332463810841411594

The resizing bounds now acts around the old pivot rather than centring on the old pivot.

@Keavon
Copy link
Member

Keavon commented Jan 26, 2025

Can you please add the division by zero check to ignore the Alt key when the pivot is on the edge being dragged? (Or perhaps if it's, say, within 1% the bounding box width which would mean holding Alt would result in a 100x growth ratio between the side being dragged and the fast-growing opposite side in the most extreme case before we ignored Alt.)

@Keavon
Copy link
Member

Keavon commented Jan 29, 2025

(This worked in this prior point in time https://65b3a12e.graphite.pages.dev/ however it suffered from the same division-by-zero edge case.)

@Keavon Keavon changed the title Change the pivot behaviour when resizing bounds with alt in the select tool Make the transform cage resize about the pivot when Alt is pressed Jan 29, 2025
@Keavon Keavon merged commit 5a8eb9d into master Jan 31, 2025
4 checks passed
@Keavon Keavon deleted the select-alt-pivot branch January 31, 2025 02:07
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.

2 participants