Search Issue Tracker
Won't Fix
Votes
4
Found in
5.4.0b19
Issue ID
802518
Regression
No
OnPointerUp is called when dragging mouse from the object which is a child of an InputField
How to reproduce:
1. Open the attached project
2. Open and play Master scene
3. Click on each of the boxes in the demo project and drag the mouse off the box while still holding down the mouse button
4. Notice that the Red and Blue boxes return the OnPointerUp message immediately when dragging the mouse pointer off of them. Only the Green box works as expected because it is not a child of an InputField.
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
look001
Feb 25, 2022 13:58
Any reason why this wont be fixed?
Bobby_F
Jan 04, 2021 22:17
Qoobit you are a life saver! Had the same issue and works perfect, for anyone else just make sure the OnDrag function is not throwing anything like right clicking the IDragHandler in VS automatically adds for you.
Thanks for following up all these years later :)
qoobit
Nov 28, 2020 00:00
If you add the IDragHandler and it's corresponding public void OnDrag(PointerEventData eventData) function, it fixes this behaviour. It's quite late but I hope it helps others running into this issue down the line.
lightnarcissus
Jan 29, 2018 15:08
This is still an issue in 2017.3.0f3 for those concerned.
DanVioletSagmiller
Oct 27, 2016 20:42
For a SORT-OF work around, you can use [if (input.GetMouseButton(0) return; ] at the beginning of the function call. However, the OnPointerUp will not trigger again. when you actually do release the mouse. Not a great solution, but it helped me work past it for the time being.