diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-06 20:42:41 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-06-09 11:29:43 +0200 |
commit | d1fa284e652e2c50d5bcd723cd5e355dce12a887 (patch) | |
tree | fe10c1c2b752463e97c4cbc57304915be1fc02ed /modules/gdscript/language_server/gdscript_text_document.cpp | |
parent | ed63b9ea236addd0d9cb6e0c6a862bd8fdf4978e (diff) | |
download | redot-engine-d1fa284e652e2c50d5bcd723cd5e355dce12a887.tar.gz |
Fix mouse position with screen transform
When a Viewport is not directly attached to the screen, the
function `Viewport::get_mouse_position` can't rely on
`get_screen_transform`, because that function is ambiguous in
these situations.
In these cases it is necessary to use the mouse position from
the most recent mouse IputEvent.
Diffstat (limited to 'modules/gdscript/language_server/gdscript_text_document.cpp')
0 files changed, 0 insertions, 0 deletions