@@ -412,16 +412,16 @@ impl ApplicationHandler<UserEvent> for VelloApp {
412
412
..
413
413
} ) = & self . state
414
414
&& * valid_surface
415
- && touch. location . y > surface. config . height as f64 * 2. / 3.
416
- {
417
- self . navigation_fingers . insert ( touch. id ) ;
418
- // The left third of the navigation zone navigates backwards
419
- if touch. location . x < surface. config . width as f64 / 3. {
420
- self . scene_ix = self . scene_ix . saturating_sub ( 1 ) ;
421
- } else if touch. location . x > 2. * surface. config . width as f64 / 3. {
422
- self . scene_ix = self . scene_ix . saturating_add ( 1 ) ;
423
- }
415
+ && touch. location . y > surface. config . height as f64 * 2. / 3.
416
+ {
417
+ self . navigation_fingers . insert ( touch. id ) ;
418
+ // The left third of the navigation zone navigates backwards
419
+ if touch. location . x < surface. config . width as f64 / 3. {
420
+ self . scene_ix = self . scene_ix . saturating_sub ( 1 ) ;
421
+ } else if touch. location . x > 2. * surface. config . width as f64 / 3. {
422
+ self . scene_ix = self . scene_ix . saturating_add ( 1 ) ;
424
423
}
424
+ }
425
425
}
426
426
TouchPhase :: Ended | TouchPhase :: Cancelled => {
427
427
// We intentionally ignore the result here
@@ -484,9 +484,10 @@ impl ApplicationHandler<UserEvent> for VelloApp {
484
484
y : position. y ,
485
485
} ;
486
486
if self . mouse_down
487
- && let Some ( prior) = self . prior_position {
488
- self . transform = self . transform . then_translate ( position - prior) ;
489
- }
487
+ && let Some ( prior) = self . prior_position
488
+ {
489
+ self . transform = self . transform . then_translate ( position - prior) ;
490
+ }
490
491
self . prior_position = Some ( position) ;
491
492
}
492
493
WindowEvent :: RedrawRequested => {
@@ -577,10 +578,10 @@ impl ApplicationHandler<UserEvent> for VelloApp {
577
578
. and_then ( |renderer| renderer. profile_result . take ( ) )
578
579
&& ( self . profile_stored . is_none ( )
579
580
|| self . profile_taken . elapsed ( ) > Duration :: from_secs ( 1 ) )
580
- {
581
- self . profile_stored = Some ( profiling_result) ;
582
- self . profile_taken = Instant :: now ( ) ;
583
- }
581
+ {
582
+ self . profile_stored = Some ( profiling_result) ;
583
+ self . profile_taken = Instant :: now ( ) ;
584
+ }
584
585
#[ cfg( feature = "wgpu-profiler" ) ]
585
586
if let Some ( profiling_result) = self . profile_stored . as_ref ( ) {
586
587
stats:: draw_gpu_profiling (
0 commit comments