I have a draggable defined this way:
$("#drag_area a").live("mouseup", function() {
var object = $(this);
var class_array = $(this).attr("class").split(" ");
element(object,class_array);
return false;
}).draggable({
containment: "#drag_area",
grid: [44, 44],
zIndex: 1000
}).each(function(i, item){
});
When i drag an item of the type 'drag_area a', if i scroll the page while dragging it, the item exits from containment... It is not a desidered situation, so how can i avoid this? Can i disable page scrolling during dragging?
I solved that problem with one line of css on dragging element touch-action: none;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With