Skip to content

Improve side assistant drag behavior - #64

Merged
sunrisefromdark merged 1 commit into
mainfrom
newS功能
Jun 28, 2026

Hidden character warning

The head ref may contain hidden characters: "newS\u529f\u80fd"
Merged

Improve side assistant drag behavior#64
sunrisefromdark merged 1 commit into
mainfrom
newS功能

Conversation

@LetVGo

@LetVGo LetVGo commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

本次更新优化了侧边 AI 助手的拖拽与展开体验:支持将助手按钮拖动到页面任意合适位置,点击后面板会在该位置附近展开,并自动避免超出屏幕。拖拽过程改为 requestAnimationFrame + translate3d 渲染,减少卡顿和位置延迟,同时禁用了头像图片的原生拖拽,避免鼠标与按钮不同步。
同时补充了相关测试,覆盖位置存储、边界限制、拖拽阈值、禁止误触发打开、以及展开面板保持拖动位置等关键行为。

Copilot AI review requested due to automatic review settings June 28, 2026 06:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sunrisefromdark
sunrisefromdark merged commit f3c481d into main Jun 28, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants