Add max distance between fingers setting to reject accidental drags#107
Open
CloudyLouis wants to merge 1 commit into
Open
Add max distance between fingers setting to reject accidental drags#107CloudyLouis wants to merge 1 commit into
CloudyLouis wants to merge 1 commit into
Conversation
Adds a new "Maximum distance between fingers" threshold (Three Finger Drag tab) that uses a single value to prevent accidental drags caused by a thumb or palm resting on the touchpad while typing: - With 3 fingers spread too far apart (e.g. 1 thumb + 2 fingers), the drag is not started. - With 4 fingers where three are close together and one is far away (e.g. 1 accidental thumb + a real three-finger drag), the outlier is detected and ignored so the drag still works with the remaining three. The threshold defaults to 0 (disabled). A maxPairDist value is logged to help choose a suitable value.
987f271 to
8d5535b
Compare
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.
Adds a 'Maximum distance between fingers' setting (Three Finger Drag tab) that uses one threshold to prevent accidental three-finger drags caused by a thumb/palm resting on the touchpad while typing.
Two cases handled:
Defaults to 0 (disabled) - existing behaviour unchanged, no settings version bump. A maxPairDist value is logged to help choose a suitable value. Outlier rejection only handles the 4-finger (1+3) case; 5+ fingers keep original behaviour.
Files: SettingsData.cs (new property), ThreeFingerDrag.cs (GetMaxPairwiseDistance + TryRejectOutlier helpers, logging, outlier rejection at top of OnTouchpadContact), ThreeFingerDragSettings.xaml(.cs) (new settings card), README.md (feature docs + CLI MSIX build instructions). Built and verified locally (.NET 10, x64 MSIX).