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.
Comments (5)
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.