muuri icon indicating copy to clipboard operation
muuri copied to clipboard

Drag zone

Open goodwin74 opened this issue 4 years ago • 2 comments

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/)

goodwin74 avatar Dec 15 '20 15:12 goodwin74

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. ezgif-1-0fe360d03771

goodwin74 avatar Dec 15 '20 15:12 goodwin74

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 ?

niklasramo avatar Apr 18 '21 10:04 niklasramo