You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
I set the bound parameter bounds: { left: 0, top: 100, right: 300, bottom: 500 }, }, and it works correctly for dragging. However scaling doesn't stop even when edge of the target beyond the bounds.
In this case, I can't scale the target anymore once isOnEdge turns true since targetRect has already been out of the bounds. How can I limit the target scaling?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I set the bound parameter
bounds: { left: 0, top: 100, right: 300, bottom: 500 }, }
, and it works correctly for dragging. However scaling doesn't stop even when edge of the target beyond the bounds.I tried to limit using DOMRect like so:
In this case, I can't scale the target anymore once isOnEdge turns true since targetRect has already been out of the bounds. How can I limit the target scaling?
The text was updated successfully, but these errors were encountered: