Skip to content

Commit

Permalink
Update draggable.rs
Browse files Browse the repository at this point in the history
Draggable example account for the start position
  • Loading branch information
cybersoulK authored Jun 19, 2024
1 parent a91e91d commit 9e74c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/yakui/examples/draggable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn run() {
});

if let Some(new) = res.dragging {
pos.set(new.current);
pos.set(new.current - new.start);
}
});
}
Expand Down

0 comments on commit 9e74c66

Please sign in to comment.