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

Add SnapToNearestEdge class #29

Closed
fujidaiti opened this issue Feb 15, 2024 · 0 comments · Fixed by #32
Closed

Add SnapToNearestEdge class #29

fujidaiti opened this issue Feb 15, 2024 · 0 comments · Fixed by #32
Assignees
Labels
feature request New feature or request
Milestone

Comments

@fujidaiti
Copy link
Owner

fujidaiti commented Feb 15, 2024

The SnapToNearestEdge is a subclass of SnappingSheetBehavior , which will snap to the closest edge within the sheet's draggable range. This feature is handy as it serves as a simplified and performance-optimized version of a SnapToNearest which only consists of two snap positions, namely minExtent and maxExtent.

// SnapToNearestEdge is functionally identical to this:
SnapToNearest(
  snapTo: [ minExtent, maxExtent ],
);
@fujidaiti fujidaiti added the feature request New feature or request label Feb 15, 2024
@fujidaiti fujidaiti added this to the v0.3.0 milestone Feb 15, 2024
@fujidaiti fujidaiti linked a pull request Feb 22, 2024 that will close this issue
@fujidaiti fujidaiti self-assigned this Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant