Skip to content

More control over autoScroll #431

@spectraldoy

Description

@spectraldoy

Hi,

This library is awesome. It has greatly empowered my projects. However, I would like to make a feature request: disabling autoScroll dynamically. For my current use case, I need to be able to drag elements without scrolling the container of my Droppables. Trying to dynamically set overflow CSS parameter of the container that contains my Droppables does not work -- there seems to be some sort of override. But, there are many use cases where disabling autoScroll, particularly while dragging something, would be useful or convenient.

As far as I can tell (and I would love to be corrected), this library does not support disabling autoScroll, or controlling the speed of autoScroll, or customizing the margins at which it begins, etc. I am requesting that this feature be added - the ability for the user to set autoScrolling thresholds, and to dynamically enable or disable it.

The original react-beautiful-dnd library also had many similar requests. The following are some examples:

The second issue in particular is interesting, due to this comment: atlassian/react-beautiful-dnd#460 (comment). That comment contains a link to this repository, where the @mjuopperi forked the repository, and was able to add an autoScroll option to the DragDropContext actually without much fuss.

If given the assurance that this feature would be accepted if I were to implement it, I'll go figure it out and set up a pull request ASAP. Actually, regardless of whether or not it will be accepted as a contribution to this library, I'll probably go tinker with it. But please let me know if this feature request would be accepted.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions