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

Tree drag is not work good when in virtual list (Tree 组件在虚拟列表的情况下,拖拽功能有问题) #31938

Closed
1 task
hyy215 opened this issue Aug 27, 2021 · 1 comment

Comments

@hyy215
Copy link

hyy215 commented Aug 27, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Scene:I need to use the virtual list to speed up rendering and support the file drag function When there are many contents in the file list

场景:当文件列表内容较多的时候,需要使用虚拟列表加快渲染,同时还需要支持文件的拖拽功能

problem: When the tree component uses a virtual list and drags it to the top and bottom of the list, the scroll bar cannot scroll up and down, resulting in the failure of the drag function

问题: 当 Tree 组件使用虚拟列表,拖拽到列表顶部、底部的时候,滚动条无法向上、向下滚动,导致拖拽功能失效

but react-sortable-tree can support the situation

但是 react-sortable-tree 这个库可以支持这种情况

What does the proposed API look like?

不需要新增 API 即可实现该功能

@afc163
Copy link
Member

afc163 commented Aug 27, 2021

Duplicate of #31057

@afc163 afc163 marked this as a duplicate of #31057 Aug 27, 2021
@afc163 afc163 closed this as completed Aug 27, 2021
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

2 participants