Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
boralg committed Jun 26, 2024
1 parent df2a76b commit 327bc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/mandelbrot/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ fn event<'a>(display: &mut Display, state: &mut MandelbrotState, event: WindowEv
state.last_cursor_location = state.cursor_location;
match state.interaction_state.clone() {
InteractionState::Idle { last_pressed_down_at, pre_tap } => {
if pre_tap {
if pre_tap && now_secs() - last_pressed_down_at > 1.0f32 {
InteractionState::ZoomingOut
} else {
InteractionState::PanningIdle { pressed_down_at: now_secs(), pre_tap: false }
Expand Down

0 comments on commit 327bc8f

Please sign in to comment.