Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a6
2019.1.0a1
2019.1.3f1
2019.2.0a1
2019.3.0a1
Issue ID
1157961
Regression
Yes
Event.current.mousePosition returns incorrect position after clicking away from a popup field inside of a custom Editor window
How to reproduce:
1. Open user-submitted project (Bug Report IMGUI)
2. From the toolbar select BUG REPORT > Bug Test Window
3. Click a couple of times inside of the window to get the current mouse position
4. Click on the first Enum 0 popup field and click away from it
5. Click on the second Enum 0 popup field and click away from it
Expected result: Event.current.mousePosition returns the correct value in both cases
Actual result: Event.current.mousePosition returns the wrong value in both cases
Reproducible with(Windows): 2018.3.0a6, 2018.4.1f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a4
Not reproducible with(Windows): 2017.4.28f1, 2018.3.0a5
Reproducible with(macOS): 2017.4.28f1, 2018.4.1f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a4
Notes:
The first popup field is drawn before returning mouse position. Clicking away from it does not return a new mouse position
The second popup field is drawn after returning mouse position. Clicking away from it returns the wrong mouse position(as if the mouse was not moved from the field)
This issue is a regression for Windows, but not a regression for macOS
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2019.3.X):
It is expected that when the popup contextual menu is discarded, the mouse down event wont be processed.