Search Issue Tracker
Fixed in 1.0.0-preview.15
Votes
2
Found in [Package]
1.0.0-preview.9
Issue ID
1287927
Regression
No
[UI Toolkit] Pointer events are triggered multiple times when simulating touch input from mouse or pen with Input System package
How to reproduce:
1. Open the attached "1287927 repro" project
2. Open the Input Debug window from Window > Analysis > Input Debugger
3. Click on the Options dropdown menu in the Input Debug window
4. Enable Simulate Touch Input From Mouse or Pen
5. Open the "SampleScene" Scene from the Assets > Scenes folder
6. Enter Play Mode
7. Click on the red rectangle in the Game window
8. Open the Console windows from Window > General > Console
Expected results: 1 message "t" is logged
Actual results: 2 or 3 messages "t" are logged depending if the mouse was moved while clicking or not
Reprocudible with: 1.0.0-preview.7 (2020.2.0b2), 1.0.0-preview.9 (2020.1.11f1, 2020.2.0b2)
Could not test with: 2018.4.28f1, 2019.4.14f1 (UI Toolkit not available), 2020.2.0b3, and newer (UI Toolkit doesn't compile)
Notes:
-This seems to be happening because the "Click" Action of the "UIToolkitInputActions" Asset (included with the UI Toolkit package) is triggering the PointerDownEvent from the Mouse Binding as well as from the Touchscreen Binding
-Moving the mouse while the left mouse button is still pressed will print one additional message
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
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
Resolution Note (fix version 1.0.0-preview.15):
Fixed in 1.0.0-preview.15