Skip to content

fix: 修复高鼠标回报率导致模型抖动的问题#926

Merged
ayangweb merged 1 commit intomasterfrom
fix-mouse-judder
Apr 17, 2026
Merged

fix: 修复高鼠标回报率导致模型抖动的问题#926
ayangweb merged 1 commit intomasterfrom
fix-mouse-judder

Conversation

@ayangweb
Copy link
Copy Markdown
Owner

@ayangweb ayangweb commented Apr 16, 2026

fixed #291
fixed #661

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

修复高鼠标回报率下(鼠标不在视图范围时)导致模型抖动/抽搐的问题,通过将高频鼠标事件“降采样”为按帧处理来稳定输入。

Changes:

  • MouseMove 事件改为仅记录最新坐标,并在 Ticker.shared 中按帧驱动鼠标移动处理
  • 在 macOS 下根据 scaleFactor 对坐标进行缩放换算
  • hideOnHover 的窗口内判断逻辑改为基于换算后的坐标

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/composables/useDevice.ts
Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts Outdated
Comment thread src/composables/useDevice.ts Outdated
@ayangweb ayangweb force-pushed the fix-mouse-judder branch 2 times, most recently from f6ad5d6 to 9eda5cb Compare April 17, 2026 06:03
@ayangweb ayangweb requested a review from Copilot April 17, 2026 06:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/composables/useDevice.ts
@ayangweb ayangweb merged commit 1e241f5 into master Apr 17, 2026
@ayangweb ayangweb deleted the fix-mouse-judder branch April 17, 2026 06:23
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.

[bug] 鼠标沿着屏幕边框滑动时动画卡顿 鼠标不在猫猫视图范围内,猫猫鼠标出现抽搐

2 participants