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
when i fix contaiment: "#somediv" and it is fixed for every draggable element, only the first one dragged is limited to the area selected:
$(document).ready(function(){
$(".lo_que_sea").multiDraggable({
contaiment: '#wrapping',
scroll: false
}).mousemove(function(event , ui){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
$("#position").text( "(" + coord.left + "," + coord.top + ")" );
}).mouseup(function(event, ui){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
});
$(".otr_interior").multiDraggable({
containment: '#wrapping',
scroll: false
}).mousemove(function(){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
$("#position1").text( "(" + coord.left + "," + coord.top + ")" );
}).mouseup(function(){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
});
whats wrong???
});
The text was updated successfully, but these errors were encountered:
when i fix contaiment: "#somediv" and it is fixed for every draggable element, only the first one dragged is limited to the area selected:
$(document).ready(function(){
$(".lo_que_sea").multiDraggable({
}).mouseup(function(event, ui){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
});
$(".otr_interior").multiDraggable({
containment: '#wrapping',
scroll: false
}).mousemove(function(){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
$("#position1").text( "(" + coord.left + "," + coord.top + ")" );
}).mouseup(function(){
var coord = $(this).position();
var width = $(this).width();
var height = $(this).height();
whats wrong???
});
The text was updated successfully, but these errors were encountered: