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

改进悬浮的侧栏面板弹出与隐藏 #13920

Open
TCOTC opened this issue Jan 23, 2025 · 0 comments
Open

改进悬浮的侧栏面板弹出与隐藏 #13920

TCOTC opened this issue Jan 23, 2025 · 0 comments

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Jan 23, 2025

  1. 如果鼠标既不在侧栏上,也不在悬浮的面板上,那么就隐藏侧栏。避免使用 transition-delay 之后面板仍然会弹出且不会隐藏。

    关联 如何通过 CSS 控制未钉住的侧栏弹出与收回? #12108

  2. 鼠标在侧栏停留一两百毫秒再 showDock(),鼠标移出一两百毫秒之后没有移回来的话再 hideDock()。可以避免想拖拽文档滚动条时频繁误触弹出面板、可以避免鼠标从窗口外快速移入时弹出面板。

    我观察了 FlowUs 和 Wolai,是有一段延迟避免误触弹出的(Notion没有)

    关联 After hiding the dock, increase the trigger area for the expansion of the floating panel #9136

  3. 隐藏悬浮的面板时,不移除 left right bottom。避免鼠标离开面板之后位置偏移

    关联 6ba7eae

video.webm
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

1 participant