-
-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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树形控件拖拽效果抖动 #4858
Comments
浏览器版本? |
mac 10.12 我看了一下效果,是因为在拖拽文件夹的时候,在target文件的上面或者下面会出现蓝色的提示线,这个会改变整个容器的高度,所以会一抖一抖的 |
这是正常的反馈。 |
提示线是正常的反馈,但是整个容器上下抖动也是正常反馈吗 |
|
transition 导致了抖动么? |
应该是此处添加了一个 border-top 导致。 |
默认上下 border 都加个 transparent 的 2px border 就不闪了。 |
会不会影响整体高度? 或者这个 |
我 PR 一个。 |
不过这样改了之后有可能比之前难拖一些。因为其实 2px 的 border 相当于变相增加了接受拖放到两个元素之间的区域的高度。 |
其实我还是觉得这个方案比较好,同时把
主要是觉得 |
* Tree DragOver Gap fix + close #4858 * rewrite
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
官网上的拖动示例,在拖拽过程中,UI会出现轻微抖动的情况,体验不是很好
The text was updated successfully, but these errors were encountered: