Fix EditorPropertyEasing capturing drag events originated outside of it

This commit is contained in:
Yuri Sizov 2021-05-12 12:39:43 +03:00
parent de3747fc37
commit 31db95b048
1 changed files with 1 additions and 1 deletions

View File

@ -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;