mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Fix EditorPropertyEasing capturing drag events originated outside of it
This commit is contained in:
parent
de3747fc37
commit
31db95b048
@ -951,7 +951,7 @@ void EditorPropertyEasing::_drag_easing(const Ref<InputEvent> &p_ev) {
|
|||||||
|
|
||||||
const Ref<InputEventMouseMotion> mm = 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;
|
float rel = mm->get_relative().x;
|
||||||
if (rel == 0) {
|
if (rel == 0) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user