Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant scroll while dragging #9

Open
fahmiirsyadk opened this issue Dec 22, 2017 · 7 comments
Open

cant scroll while dragging #9

fahmiirsyadk opened this issue Dec 22, 2017 · 7 comments

Comments

@fahmiirsyadk
Copy link

cant scroll while dragging block

deepin-screen-recorder_select area_20171222222635

@BrockReece
Copy link
Owner

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
Copy link

phsgoes commented Jan 29, 2019

Did anyone find a solution to this scrolling issue?

@BrockReece
Copy link
Owner

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.
bevacqua/dragula#449

@BrockReece
Copy link
Owner

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

Not sure if that helps you?

@phsgoes
Copy link

phsgoes commented Feb 1, 2019

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
Copy link

phsgoes commented Feb 6, 2019

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
Copy link

impronta48 commented May 30, 2024

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;
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants