Open
Conversation
There was a problem hiding this comment.
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.
Owner
|
稍等我在本地测试一下。以及,请确认一下,推荐值到底是 1200,还是 600? |
Owner
|
整体效果很好,但是此处有一个问题。
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
平滑与抖动抑制
添加用户个性化自定义: X/Y 移动灵敏度(推荐600,600)