muuri
muuri copied to clipboard
Drag zone
Is it possible to make a drop zone? So that the element leaving this zone, either returns to its place, or stops at the border and moves along the border following the cursor. (drag limiting example https://jsfiddle.net/mntbkhwr/)
I wanted to do this to remove the scroll effect. However, I see that the Demo on the main page works without the scrolling effect. When you move an object out of the window, down or to the right, the scroll does not appear.
How to do exactly the same? What's the secret?
I get scrolling if I move the object out of bounds.
Is it possible to make a drop zone? So that the element leaving this zone, either returns to its place, or stops at the border and moves along the border following the cursor.
Currently that is not possible, however, implementing it (in muuri's core) should not be too difficult as long as one figures out how to handle all the edge cases. I believe this is the same feature request as here: https://github.com/haltu/muuri/issues/47 ?