Skip to content

Scroll while dragging #121

Description

@bryannielsen

I see two situations where implementing some scrolling would be very helpful -

If the container is taller than the viewport.
It would be nice if the plugin could scroll the page when you hit the edge of the viewport while dragging an item.

If the target container has a height restriction along with overflow:scroll.
Similarly, the plugin could change the scroll position of the target container when you hit an edge.

I made an attempt at implementing this but it seems that my handler bound to mousemove was only being triggered when I dragged an element outside of the container and back in. I'm not sure if the plugin is killing mousemove events for performance reasons (that's my guess) but is there any other way to get the position of the dragged element as it moves?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions