Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Drag and drop: When dragging a gear item the parent list does not scroll #52

Open
benhoneywill opened this issue Apr 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@benhoneywill
Copy link
Owner

Describe the bug
When dragging a gear item to another category, moving the item to the edge of the screen does not scroll the parent container. This is very annoying on mobile

To Reproduce
Steps to reproduce the behavior:

  1. Go to a pack or inventory
  2. Have enough categories to cause a horizontal scroll bar
  3. Try and drag a piece of gear to another category that is not currently on the screen

Expected behavior
The screen scrolls when your cursor gets to the edge of the screen, revealing the hidden category for you to drop into

Additional context
This is a limitation of the react-beautiful-dnd library I have used for drag and drop... atlassian/react-beautiful-dnd#131

We could either figure out a way to force the parent to scroll ourselves or migrate to another library as this one doesn't look like it is maintained anymore. Both options sound like a lot of work.

@benhoneywill benhoneywill added the bug Something isn't working label Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant