Search Issue Tracker
By Design
By Design in 2023.1.X
Votes
0
Found in
2021.1.13f1
2022.1.20f1
2022.2.0b10
2023.1.0a12
Issue ID
UUM-18844
Regression
No
PointerDownEvent is not invoked when clicking a button
How to reproduce:
1. Open the attached “UI Toolkit Bug Report” project
2. Enter Play Mode
3. Click on the “Click me!” button
4. Observe the Console
Expected result: "OnPointerDownEvent" LogError appears alongside “OnPointerUpEvent” and “OnClickEvent”
Actual result: "OnPointerDownEvent" LogError does not appear
Reproducible with: 2021.3.13f1, 2022.1.20f1, 2022.2.0b10, 2023.1.0a12
Couldn’t test with: 2020.3.39f1 (Console error)
Reproducible on: Windows 10
Note: Reproduces on Windows build
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
- Crash on UndoManager::RegisterUndoInternal when applying added GameObjects to a Prefab
- [Asset Bundles] A new bundle hash is not generated when the name of a serialized field is changed
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
Resolution Note:
The Button's Clickable manipulator has been reacting with StopImmediatePropagation for as long as it has existed, intentionally hiding PointerDownEvent to other callbacks after the Clickable to allow it to work well with other manipulators such as those handling Drag effects. Users can RegisterCallback with the TrickleDown.TrickleDown argument if they want to react to the event before the Clickable manipulator stops it.
Resolution Note (2023.1.X):
The Button's Clickable manipulator has been reacting with StopImmediatePropagation for as long as it has existed, intentionally hiding PointerDownEvent to other callbacks after the Clickable to allow it to work well with other manipulators such as those handling Drag effects. Users can RegisterCallback with the TrickleDown.TrickleDown argument if they want to react to the event before the Clickable manipulator stops it.