kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
599 stars 147 forks source link

Keep inside Parent (querySelector) #42

Closed johannes-z closed 5 years ago

johannes-z commented 5 years ago

I'm refering to your demo for the https://kutlugsahin.github.io/vue-smooth-dnd/#/cards.

The parent of all the card-containers is card-scene. If you drag a column, you can drag it anywhere outside (even offscreen) this parent card-scene. While this doesn't do anything, it can break certain styles. An option that lets you set the container the draggables are restricted to would be great. See http://interactjs.io/#resizing for an example of what I mean.