Skip to content

fix(outline): 大纲钉住后点击外部不再关闭 - #1996

Open
lqtdys wants to merge 1 commit into
mainfrom
fix/1984-outline-pin
Open

lqtdys wants to merge 1 commit into
mainfrom
fix/1984-outline-pin

Conversation

@lqtdys

@lqtdys lqtdys commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

关联

fixes #1984

影响

大纲面板 Pin 态下,点击面板外部不再关闭;仅再次点击图钉图标或 Esc 关闭。非 Pin 的 hover 收起行为不变。

验证(先红后绿)

  • 先红(改前跑新 e2e):钉住后点击外部 → expect(menu).toBeVisible() 失败
  • 绿:e2e/outline-pin-outside.spec.ts 3 passed
  • 既有 outline e2e(menu + border)14 passed
  • npx tsc --noEmit 0;npx eslint src/ 0 error;vitest 复跑 202/2505 passed(首跑 DocPropertyBar 断言偶发 flake,单跑 39 passed,与本次无关)

备注

WKWebView 的 pointerdown 可能与 headless 有差异,钉住态外部点击需真机复核。

Pin 态下 onDown 直接 return,不再无条件 setPinned(false)/setHovering(false);
仅再次点击图钉或 Esc 关闭。非钉住 hover 行为不变。

fixes #1984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk-low CI 绿自动合并

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] 大纲钉住后点击外部仍关闭,应仅图标关闭

1 participant