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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.