Search Issue Tracker
By Design
Votes
0
Found in [Package]
preview.6 - 1.0.0
Issue ID
1215143
Regression
No
New Input System Press Trigger callback is blocked when Tap interaction is above in the list
To reproduce:
1. Open attached project ("case_1215143.zip")
2. Press Play and focus the Game View
3. Hold the "Shift" button for a few seconds and release it
4. Observe the Console window
Expected result: "PressInteraction performed" is printed once when the button is pressed and once after it is released
Actual result: "PressInteraction performed" is printed twice when the button is released
Reproducible in: 2019.3.8f1, 2020.1.0b4, 2020.2.0a5
Could not test in: 2017.4.39f1 (No Package Manager), 2018.4.20f1 (Due to errors in the project)
Reproducible in package versions: 0.2.10, preview.6 - 1.0.0
Could not test in package versions: 0.1.2, 0.2.8 (Due to errors in the project)
Notes:
1. Callbacks seem to get duplicated
2. The behavior is inconsistent between different package versions, see the attached picture with full sequences in the edit ("Diff-Versions.png")
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note:
The project has an interaction setup on both the action and the left shift binding. These are *combined* -- leading to surprising behavior here. This is on us to make this clearer and more evident in the UI.
If one of the setups is removed and a Tap stacked on top of a Press is left, the setup behaves as expected in 1.0. If left shift is pressed, a Tap is started. If left shift is held for longer than tap time, the Tap is canceled and a Press is started and performed. If left shift is released within tap time, a Tap is performed and Press isn't touched.