Repository navigation
A new finger takes the controls from one resting unmoved - #14
Merged
Merged
Conversation
A control owned the first finger until it lifted, so a palm or grip resting on the interface locked out every other press. A finger down and unmoved longer than a tap (kFingerRestMs) now gives way to the next one, its own press cancelled. A drag under way, or a tap still in progress, keeps it.
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.
On a phone, the hand holding the device often rests on the screen. Before this change, a control owned the first finger to touch it until that finger lifted, so a palm resting on the interface (even on a panel's background) locked out every press after it.
A finger that has rested on the interface, unmoved, for longer than a tap (
kFingerRestMs, 250 ms) now gives way to the next finger. Its own press is cancelled, so it never fires. A drag already under way keeps its finger, and so does a tap still in progress.press_.startMsis now set for every press, not only one inside a Scroll.settleRestingFingerstill reads it only for an undecided scroll.Tests:
bureau_tests, all 311 cases pass. Three new cases inview_test.cpp: