Merge pull request #48182 from EricEzaM/PR/fix-viewport-not-updating-mouse-pos-on-click

This commit is contained in:
Rémi Verschelde 2021-05-04 09:25:58 +02:00 committed by GitHub
commit 3fea170772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1840,6 +1840,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
Control *over = nullptr;
Point2 mpos = mb->get_position();
gui.last_mouse_pos = mpos;
if (mb->is_pressed()) {
Size2 pos = mpos;
if (gui.mouse_focus_mask) {