From 5a61bb0b95804247a209ea4c878db9fd17001c3b Mon Sep 17 00:00:00 2001 From: Jared Moulton Date: Wed, 27 Nov 2024 01:11:41 -0700 Subject: [PATCH] fix draggable (#701) Fixes #700 --- examples/layout/src/draggable_sidebar.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/layout/src/draggable_sidebar.rs b/examples/layout/src/draggable_sidebar.rs index 2059f610..26fff99d 100644 --- a/examples/layout/src/draggable_sidebar.rs +++ b/examples/layout/src/draggable_sidebar.rs @@ -66,7 +66,6 @@ pub fn draggable_sidebar_view() -> impl IntoView { let dragger = label(|| "") .style(move |s| { s.position(Position::Absolute) - .z_index(10) .inset_top(0) .inset_bottom(0) .inset_left(sidebar_width.get()) @@ -97,7 +96,7 @@ pub fn draggable_sidebar_view() -> impl IntoView { EventPropagation::Continue }); - let view = h_stack((side_bar, dragger, main_window)) + let view = h_stack((side_bar, main_window, dragger)) .on_event(EventListener::PointerMove, move |event| { let pos = match event { Event::PointerMove(p) => p.pos,