-
Notifications
You must be signed in to change notification settings - Fork 5
写字板/绘画优化与个性化-平滑移动 #11
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the touchpad drawing/writing experience by implementing cursor movement smoothing and jitter suppression, along with user-configurable tap/drag sensitivity settings.
Key changes:
- Added exponential moving average smoothing algorithm with configurable deadzone to reduce cursor jitter
- Implemented enhanced tap vs drag detection logic based on duration and movement thresholds
- Added UI controls and configuration persistence for sensitivity customization (tap duration, X/Y movement thresholds)
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 21 comments.
| File | Description |
|---|---|
| MapTP.App/MouseProcessor.cs | Added smoothing algorithm with deadzone, introduced constants for readability, and refactored cursor movement logic |
| MapTP.App/MainWindow.xaml.cs | Implemented tap/drag detection state machine, added sensitivity configuration loading/saving, and extended Config class with new sensitivity properties |
| MapTP.App/MainWindow.xaml | Added UI controls for sensitivity configuration (tap time, X/Y movement thresholds) with Apply button |
| .gitignore | Added .vscode directory to ignore list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
稍等我在本地测试一下。以及,请确认一下,推荐值到底是 1200,还是 600? |
|
整体效果很好,但是此处有一个问题。
|
平滑与抖动抑制
添加用户个性化自定义: X/Y 移动灵敏度(推荐600,600)