React-beautiful-dnd: Prevent page from scrolling when draggable is being dragged near edge of page
Asked Answered
R

0

9

I'm using react-beautiful-dnd in a project and when I'm dragging a draggable, the page auto scrolls if I drag it near the top, bottom or sides of the page. I could theoretically fix this problem by placing the drag and drop container in the middle of the page so that the user probably wouldn't trigger the auto scroll as the draggable wouldn't be dragged to the edges of the page, but I'd prefer not to alter the layout in that way. Is there any way to disable the auto scrolling?

Reactor answered 27/7, 2021 at 13:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.