EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
fix(ui-egui): make hover over workarea selector set cursor to `ResizeHorizontal`
Waldemar Lehner5c875cb240ad
diff --git a/crates/ui-egui/src/panels/timeline.rs b/crates/ui-egui/src/panels/timeline.rsindex 238071bda..35db679d9 100644--- a/crates/ui-egui/src/panels/timeline.rs+++ b/crates/ui-egui/src/panels/timeline.rs@@ -1747,6 +1747,9 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {p.rect_filled(handle, 2.0, t.accent);let resp = ui.interact(hr, egui::Id::unique(("wa", set)), Sense::drag());app.auto.add(&format!("timeline.workArea.{set}"), hr, set);+ if resp.dragged() || resp.hovered() {+ ctx.set_cursor_icon(egui::CursorIcon::ResizeHorizontal);+ }if resp.dragged()&& let Some(pt) = resp.interact_pointer_pos(){