Unity Issue Tracker - Callback event is triggered twice when pressing on UI Toolkit element
Fixed
UUM-30742
Callback event is triggered twice when pressing on UI Toolkit element
Unity: Linux
Linux
UI Toolkit
Fixed
2022.2.X
2022.2.0f1 onwards
fix multiple mouse events on linux on 2022.2
Reproduction steps:
1. Open the attached “Test Project” Project
2. Open the “Scenes/SampleScene” Scene
3. Enter the Play Mode
4. Press on the “btnClickMe" Button
5. Observe “lblNumClicks" GO
Expected result: For every “btnClickMe” Button press, the number in the”lblNumClicks” GO increases by one
Actual result: For every “btnClickMe” Button press, the number in the”lblNumClicks” GO increases by two
Reproducible with: 2022.2.0f1, 2022.2.10f1, 2023.1.0a10
Not reproducible with: 2021.3.20f1, 2022.2.0b16, 2023.2.0a5
Can’t test with: 2020.3.46f1 - No support for Structure UI
Fixed in: 2023.1.0a11
Reproducible on: Ubuntu 20.04.5
Not reproducible on: Windows 10
Prioritise and Follow this issue
Have a workaround or additional info about this issue?