-
Notifications
You must be signed in to change notification settings - Fork 143
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
What is the syntax for containment? #99
Comments
I got containment to work by looking in the source code and trying out some different stuff. In the end i got it to work by using example below, but it creates some latency when moving because of the constant checking for bounderies. HTML
CONTROLLER
|
Use sv-element="{containment:'.your-parent-div-class'}" in the childen. I used and it worked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I couldn't easily see any code examples of the attribute to add for constraining the sv-elements to the bounds of the sv-root.
Please provide example.
Thank you for the great work. :)
The text was updated successfully, but these errors were encountered: