BrockReece / vue-kanban

A vue based drag and drop kanban board
MIT License
802 stars 161 forks source link

cant scroll while dragging #9

Open fahmiirsyadk opened 6 years ago

fahmiirsyadk commented 6 years ago

cant scroll while dragging block

deepin-screen-recorder_select area_20171222222635

BrockReece commented 6 years ago

Ah, thanks for this, I will look into it. I used a library called Dragula for my drag and drop interface, this may a limitation of their library.

phsgoes commented 5 years ago

Did anyone find a solution to this scrolling issue?

BrockReece commented 5 years ago

Sorry I meant to respond to this a while ago. Looks like an issue on Dragula that has dragged on for ages, and on top of that looks like Dragula is no longer under active dev. https://github.com/bevacqua/dragula/pull/449

BrockReece commented 5 years ago

There seems to be suggestions of using something like https://www.npmjs.com/package/dom-autoscroller

Not sure if that helps you?

phsgoes commented 5 years ago

There seems to be suggestions of using something like https://www.npmjs.com/package/dom-autoscroller

Not sure if that helps you?

Actually, dom-autoscroller only works on elements with direct children. That's not the case of vue-kanban. I'm trying to find a solution.

phsgoes commented 5 years ago

Is there any way to detect when an elements is being dragged? This way I can calculate the offset width to scroll the container

impronta48 commented 5 months ago

I've used a fixed height of my columns and a overlay-y:scroll, so to avoid scrolling+dragging (this is similar to what trello does).

  .drag-inner-list {
    min-height: 50px;
    color: #292929;
    height: 50vh ;
    overflow-y: scroll;
    /*position of scroll bar can use rtl if wanted, but use div * {direction: ltr;} if you do.} */
    scrollbar-width: auto;/*fancy width*/
    scrollbar-color: #039ACB #C5E3ED;
    :-webkit-scrollbar {
      width: 18px;
    }
  }