Skip to content

Commit

Permalink
fix draggable (#701)
Browse files Browse the repository at this point in the history
Fixes #700
  • Loading branch information
jrmoulton authored Nov 27, 2024
1 parent 9903dcf commit 5a61bb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/layout/src/draggable_sidebar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5a61bb0

Please sign in to comment.