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

Added support for center sixth snap areas #808

Merged
merged 1 commit into from
May 16, 2022

Conversation

Aaron-Rumpler
Copy link
Contributor

@Aaron-Rumpler Aaron-Rumpler commented May 2, 2022

Adds snap areas for top center and bottom center sixths (in addition to the corner sixths added in #799) by first dragging to a corner, then along the top/bottom edge past the corner sixth snaps to the middle of the top/bottom edge.

if loc.x >= frame.minX + thirdWidth && loc.x <= frame.maxX - cornerSize {
if loc.x >= frame.maxX - thirdWidth && loc.x <= frame.maxX - cornerSize {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why the top center was being treated as part of the top right sixth snap zone, but it was interfering with the new top center sixth snap zone.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may have just got confused 😁

@rxhanson rxhanson merged commit c626fe9 into rxhanson:master May 16, 2022
@Aaron-Rumpler Aaron-Rumpler deleted the center-sixth branch May 16, 2022 09:03
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.

3 participants