summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-05-12 12:39:43 +0300
committerYuri Sizov <yuris@humnom.net>2021-05-12 12:39:43 +0300
commit31db95b048813b78cd8259cd41b5b98db9e8e540 (patch)
tree381715798dd48a8e3b1e0690293d35aff6e5243b
parentde3747fc378383e9df1dc98849e3235f280338b7 (diff)
Fix EditorPropertyEasing capturing drag events originated outside of it
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 6638962c72..ee55ec4c0b 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -951,7 +951,7 @@ void EditorPropertyEasing::_drag_easing(const Ref<InputEvent> &p_ev) {
const Ref<InputEventMouseMotion> mm = p_ev;
- if (mm.is_valid() && mm->get_button_mask() & MOUSE_BUTTON_MASK_LEFT) {
+ if (dragging && mm.is_valid() && mm->get_button_mask() & MOUSE_BUTTON_MASK_LEFT) {
float rel = mm->get_relative().x;
if (rel == 0) {
return;