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

官网文档的滑动焦点逻辑前后不一 #87

Closed
Janlaywss opened this issue Oct 27, 2021 · 2 comments
Closed

官网文档的滑动焦点逻辑前后不一 #87

Janlaywss opened this issue Oct 27, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Janlaywss
Copy link
Contributor

Steps to reproduce 复现步骤

    1. 鼠标焦点选中了代码编辑区域
    1. 滑动页面,此时只有代码编辑区域滑动
    1. 鼠标移出代码框,悬停在页面其他区域
    1. 此时滑动页面,页面整体滑动
    1. 鼠标指针重新停留在焦点选择的代码框
    1. 此时滑动页面,无法再滑动代码编辑区域

正确实现

我理解正确实现应当一致。

要不都按照鼠标的焦点走(只有点哪里才能滑动哪里)
要不移回代码框,依然可以滑动代码编辑区域(毕竟移出代码框,你的行为是鼠标停留在页面就滑动页面)

@Janlaywss Janlaywss added the bug Something isn't working label Oct 27, 2021
@tank0317
Copy link
Collaborator

并非 bug 哈,这个滚动交互是我们有意为之。

  1. 按照鼠标的焦点走。这个方式我们之前做过,弊端是:来回切换焦点会感觉很繁琐
  2. 移回代码框,依然可以滑动代码编辑区域。这个弊端:我一旦滑动到代码区,页面滚动会变成代码区滚动,页面滚动会被打断。

@Janlaywss
Copy link
Contributor Author

并非 bug 哈,这个滚动交互是我们有意为之。

  1. 按照鼠标的焦点走。这个方式我们之前做过,弊端是:来回切换焦点会感觉很繁琐
  2. 移回代码框,依然可以滑动代码编辑区域。这个弊端:我一旦滑动到代码区,页面滚动会变成代码区滚动,页面滚动会被打断。

你可能没听懂我的意思,,,滑动回有焦点停留的代码编辑区域才能滚动相应的代码编辑区域。。而不是随便一划,滚动区域就变了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants