FIX: inactive touch driving invalid synthetic click on state reset#2349
Draft
MorganHoarau wants to merge 2 commits intodevelopfrom
Draft
FIX: inactive touch driving invalid synthetic click on state reset#2349MorganHoarau wants to merge 2 commits intodevelopfrom
MorganHoarau wants to merge 2 commits intodevelopfrom
Conversation
Add ShouldSkipInitialStateCheck and use it in InputActionState's initial-state loop to avoid treating preserved touch data as actuated during binding re-resolution.
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.
Description
Attempt to address UUM-100125 (phantom click after device rotation).
Issue:
InputActionStateto run initial-state catch-up inOnBeforeInitialUpdate. (See Comments To Reviewers section for overview)positionisdontReset = true).Changes
Actions_InitialStateCheckAfterConfigurationChange_DoesNotTriggerForInactiveTouchDraft concern:
Actions_WithMultipleCompositeBindings_WithoutEvaluateMagnitude_Works(true)expects prior behavior and currently fails with the guard.TouchState.isInProgressistrue)?TODO:
Testing status & QA
Actions_WithMultipleCompositeBindings_WithoutEvaluateMagnitude_Works(true)Overall Product Risks
Comments to reviewers
Tracing the whole flow can help understand the broader context.
DeviceConfigurationEventflow diagram:flowchart TD subgraph Native["Native / Backend"] A[Device rotates] B[Queue DeviceConfigurationEvent] end subgraph IM["InputManager"] C[Process DeviceConfigurationEvent] D[NotifyConfigurationChanged] E[InputActionState.OnDeviceChange ConfigurationChanged] end subgraph IASResolve["InputActionState.Resolve phase"] F[Full binding re-resolve] G[Set initialStateCheckPending = true] end subgraph IASInitial["InputActionState.OnBeforeInitialUpdate"] H[Loop bindings and controls] I{Control belongs to TouchControl?} J{touch.isInProgress?} K[Default CheckStateIsAtDefault path] end subgraph OldPath["Old behavior"] L[SignalStateChangeMonitor for inactive touch] M[Started/Performed from stale touch state] N[Phantom UI click] end subgraph NewPath["Current proposed fix"] O[Skip inactive touch control] P[No synthetic Started/Performed] Q[No phantom UI click] end A --> B B --> C C --> D D --> E E --> F F --> G G --> H H --> I I -- no --> K I -- yes --> J J -- yes --> K J -- no old --> L L --> M M --> N J -- no new --> O O --> P P --> QChecklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.