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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (2019.3.X):
It is expected that when the popup contextual menu is discarded, the mouse down event wont be processed.