File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
174174 Ref<InputEventMouseButton> mb = p_event;
175175
176176 if (mb.is_valid ()) {
177- if (mb->is_pressed () && mb->get_button_index () == MouseButton::WHEEL_UP && !mb->is_command_or_control_pressed ()) {
177+ if (mb->is_pressed () && ( mb->get_button_index () == MouseButton::WHEEL_UP || ( is_layout_rtl () ? mb-> get_button_index () == MouseButton::WHEEL_RIGHT : mb-> get_button_index () == MouseButton::WHEEL_LEFT)) && !mb->is_command_or_control_pressed ()) {
178178 if (scrolling_enabled && buttons_visible) {
179179 if (offset > 0 ) {
180180 offset--;
@@ -184,7 +184,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
184184 }
185185 }
186186
187- if (mb->is_pressed () && mb->get_button_index () == MouseButton::WHEEL_DOWN && !mb->is_command_or_control_pressed ()) {
187+ if (mb->is_pressed () && ( mb->get_button_index () == MouseButton::WHEEL_DOWN || mb-> get_button_index () == ( is_layout_rtl () ? MouseButton::WHEEL_LEFT : MouseButton::WHEEL_RIGHT)) && !mb->is_command_or_control_pressed ()) {
188188 if (scrolling_enabled && buttons_visible) {
189189 if (missing_right && offset < tabs.size ()) {
190190 offset++;
You can’t perform that action at this time.
0 commit comments