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
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
<div sv-root sv-part="editItem.Gallery">
<div sv-element="opts" class="editImage grid" ng-repeat="picture in editItem.Gallery">
CONTROLLER
// Set containment div - but this creates some latency when moving
var containmentElement = angular.element('#your_div_containment')[0];
$scope.opts = {
"containment": containmentElement
};
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: