CursorLayer: a queued hover update can override lockCursor()
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- frontend
调研方向
阅读 src/components/canvas/layers/cursorLayer/CursorLayer.ts 中 mouseenter 和 lockCursor() 逻辑附近的代码;与链接的 v2 文件 packages/graph/src/components/canvas/layers/cursorLayer/CursorLayer.ts 进行比较。复现锁定后排队的 hover 更新,然后验证光标会一直保持锁定状态,直到调用 unlockCursor(),并且解锁时会应用当前目标对应的光标。
由索引模型根据 Issue 内容生成。
描述
Reproduction
- With the cursor layer in automatic mode, move the pointer onto an interactive canvas component whose cursor is
pointer. - Before the scheduled hover update runs, call
graph.lockCursor("wait"). Calling it in the next animation frame aftermouseenteris one way to exercise this ordering. - Leave the pointer still and let the scheduler advance.
The root cursor is initially wait. The pending hover callback then sets it to pointer while the cursor layer is still in manual mode.
Expected behavior
The locked cursor should remain in effect until unlockCursor() or another lockCursor() call. Unlocking should still apply the cursor for the current target.
mouseenter checks the mode before queueing its update, but the callback does not check it when it runs. lockCursor() leaves the queued callback in place. This applies to main and v2.
- 主要语言
- TypeScript
- 星标
- 145
- 派生
- 12
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 43
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
gravity-ui/graph 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
gravity-ui/graph#455 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
gravity-ui/graph#456 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
gravity-ui/graph#431 ·
维护者通常 1 天内回复
-
proposal
难度 5/5 一周以上 新手友好度 25/100
gravity-ui/graph#416 ·
维护者通常 1 天内回复
-
Graph root is not a containing block for absolutely positioned layers可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
gravity-ui/graph#414 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
tintinweb/pi-subagents#459 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
danielmiessler/LifeOS#2830 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
freshframework/fresh#3920 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
area: client enhancement priority: low
难度 2/5 1-3 小时 新手友好度 75/100
opensro-dev/opensro#3681 ·
维护者通常 1 天内回复