diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-12 12:44:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 12:44:47 +0200 |
commit | c37fc126152c82fbc318d44a02e68f836d49e78a (patch) | |
tree | 381715798dd48a8e3b1e0690293d35aff6e5243b | |
parent | de3747fc378383e9df1dc98849e3235f280338b7 (diff) | |
parent | 31db95b048813b78cd8259cd41b5b98db9e8e540 (diff) |
Merge pull request #48665 from pycbouh/editor-capture-easing-drag
Fix `EditorPropertyEasing` capturing drag events originated outside of it
-rw-r--r-- | editor/editor_properties.cpp | 2 |
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; |