Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.4.0f1

2018.4.0f1

2019.1.3f1

2019.2.0a1

2019.3.0a1

2020.1.0a1

Issue ID

1179396

Regression

No

Event.mousePosition returns incorrect mouse position when using OnGUI() in a custom Editor window

IMGUI

-

How to reproduce:
1. Open the attached 'Bug Report IMGUI.zip' project
2. In the Editor select 'BUG REPORT' > 'Bug Test Window'
3. Drag the cursor to the 'Bug Test Window' window and press CTRL + C keys
4. Observe the Console window

Expected result: actual mouse position (in the 'Bug Test Window' window) is printed
Actual result: mouse position has no impact on the printed message

Reproducible with: 2017.4.32f1, 2018.4.8f1, 2019.2.4f1, 2019.3.0b2, 2020.1.0a3

Note: the printed message returns one of the following values: (0.0, -19.0), (-1.0, -19.0), (0.0, -21.0) and similar, depending on where the custom window is located in the Edtor

  1. Resolution Note (2020.1.X):

    LOw Priority defect, unlikely to be fix for the near future.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.