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拖拽时,同级Node之间高亮区域要大于事件触发(鼠标变为+号)的区域 #4371

Closed
pixystone opened this issue Dec 27, 2016 · 4 comments · Fixed by #4398
Assignees

Comments

@pixystone
Copy link
Contributor

发生在top级别的Node之间

拖拽的时候,Node上方的高亮区域要大于鼠标变为+号的区域,而实际上鼠标变为+号才能够触发事件,但区域蓝色高亮的提示要比鼠标的变化更引用户注意,所以有时候拖动到高亮出现,但事件没有发生,会造成用户困扰。

发生问题的环境是:

  • antd 版本: 2.5.1
  • 操作系统及其版本: osx
  • 浏览器及其版本: Chrome

http://codepen.io/anon/pen/zoVodq?editors=0010

正如示例里面,把3333拖起来,11112222之间有一段空隙是不会触发事件的,但是会有高亮效果

可能这个留空的位置是用来触发展开子节点事件的,但是高亮的范围是否可以缩小一些?

@ddcat1115
Copy link
Contributor

你是指的这种情况?

2016-12-27 4 24 52

@pixystone
Copy link
Contributor Author

是的,这种情况下放开鼠标什么事都不会发生。

@ddcat1115
Copy link
Contributor

@yesmeck 能瞅瞅吗?能不能不要这块区域呢

@lock
Copy link

lock bot commented May 2, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants