summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-04 09:25:58 +0200
committerGitHub <noreply@github.com>2021-05-04 09:25:58 +0200
commit3fea1707723a211c223f73d71b1243bf2f558d09 (patch)
treeb8d3758a65d863992f624aa08119f7c7d9f2466d
parent6653ec7cfefa9bcb1b034c1c36439ab52f24199d (diff)
parent7c9bd815782050194a2bd907ac94c167443991a2 (diff)
Merge pull request #48182 from EricEzaM/PR/fix-viewport-not-updating-mouse-pos-on-click
-rw-r--r--scene/main/viewport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 90f556cf1b..f861e3064c 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -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) {