Godot Engine – Multi-platform 2D and 3D game engine
[TextEdit] Reset pan event state on scroll wheel events.
Pāvels Nadtočajevscf9e2d828586
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cppindex e87ab4f06ac..22d894d4698 100644--- a/scene/gui/text_edit.cpp+++ b/scene/gui/text_edit.cpp@@ -2486,6 +2486,11 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {mpos.x = get_size().x - mpos.x;}+ if (mb->is_pressed() && mb->get_button_index() >= MouseButton::WHEEL_UP && mb->get_button_index() <= MouseButton::WHEEL_RIGHT) {+ touch_dragging_in_progress = false;+ pan_gesture_performed = false;+ }+if (mb->is_pressed()) {if (mb->get_button_index() == MouseButton::WHEEL_UP && !mb->is_command_or_control_pressed()) {if (mb->is_shift_pressed()) {