Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth committed May 23, 2024
1 parent e3045fd commit 71d33d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions druid/examples/input_region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ impl InputRegionExampleWidget {
let toggle_mouse_pass_through_while_not_in_focus = Button::new("Toggle Mouse Pass Through")
.on_click(|_, data: &mut bool, _: &Env| {
*data = !*data;
tracing::debug!("Setting mouse pass through while not in focus to: {}", *data);
tracing::debug!(
"Setting mouse pass through while not in focus to: {}",
*data
);
})
.lens(AppState::mouse_pass_through_while_not_in_focus);
let controls_flex = Flex::row()
Expand All @@ -91,7 +94,8 @@ impl Widget<AppState> for InputRegionExampleWidget {
) {
self.info_label.event(ctx, event, data, env);
self.controls.event(ctx, event, data, env);
let mouse_pass_through = data.mouse_pass_through_while_not_in_focus && !ctx.window().is_foreground_window();
let mouse_pass_through =
data.mouse_pass_through_while_not_in_focus && !ctx.window().is_foreground_window();
if mouse_pass_through != data.mouse_pass_through {
data.mouse_pass_through = mouse_pass_through;
tracing::debug!("Setting mouse pass through to: {}", mouse_pass_through);
Expand Down

0 comments on commit 71d33d9

Please sign in to comment.