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
- [Remote Config] PreparePayloadWithConfigType function is looking for camelCase property names, when the JSON objects are using PascalCase naming
- UI Builder Viewport's Tool Gizmo has deadzones
- SpriteShapes are rendered using multiple draw calls when the SRP Batcher determines their nodes are incompatible in a specific project
- UI Toolkit Debugger "Pick Element" selects Scene view panel when trying to select a world space UI element in the Scene view
- MSAA warnings are thrown when custom post-processing is used and the Scene contains transparent GameObjects
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.