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
- Wrong NativeName displayed when returning System.Globalization.CultureInfo("zh-TW").NativeName
- UI Toolkit ScrollView.verticalPageSize doesn't change the scrolling amount when using keyboard arrows
- Box selection in Scene View doesn't select 3D objects when GPU Resident Drawer setting is set to Instanced Drawing
- Debugger stops at commented lines of code when using ECS
- Asset preview doesn't update on changing shader's _GlobalColor property when the shader uses global uniforms
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.