From c3edc1b88eba51991a1107d46ca5877e59b3566b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 8 Nov 2022 00:51:50 +0100 Subject: [PATCH] fix mistake added in #2261 --- crates/egui/src/containers/panel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/containers/panel.rs b/crates/egui/src/containers/panel.rs index 3def3c32163..dcb5bb7cd9d 100644 --- a/crates/egui/src/containers/panel.rs +++ b/crates/egui/src/containers/panel.rs @@ -249,7 +249,7 @@ impl SidePanel { let dragging_something_else = any_down || ui.input().pointer.any_pressed(); resize_hover = mouse_over_resize_line && !dragging_something_else; - { + if resize_hover || is_resizing { ui.output().cursor_icon = CursorIcon::ResizeHorizontal; } } @@ -682,7 +682,7 @@ impl TopBottomPanel { let dragging_something_else = any_down || ui.input().pointer.any_pressed(); resize_hover = mouse_over_resize_line && !dragging_something_else; - { + if resize_hover || is_resizing { ui.output().cursor_icon = CursorIcon::ResizeVertical; } }