@@ -845,7 +845,7 @@ fn test_mouse_scroll_over_diff_pane_scrolls_side_panel_without_changing_focus()
845845 modifiers : KeyModifiers :: empty ( ) ,
846846 } ) ;
847847
848- assert_eq ! ( app. diff_pane_scroll, 6 ) ;
848+ assert_eq ! ( app. diff_pane_scroll, 8 ) ;
849849 assert ! ( !app. diff_pane_focus) ;
850850 assert ! ( !app. diff_pane_auto_scroll) ;
851851}
@@ -872,15 +872,18 @@ fn test_mouse_scroll_animation_preserves_side_pane_scroll_sensitivity() {
872872 modifiers : KeyModifiers :: empty ( ) ,
873873 } ) ;
874874
875- assert_eq ! ( app. diff_pane_scroll, 6 , "first frame should move one line" ) ;
875+ assert_eq ! (
876+ app. diff_pane_scroll, 8 ,
877+ "one wheel notch should drain the full side-pane scroll amount"
878+ ) ;
876879
877880 let _ = crate :: tui:: app:: local:: handle_tick ( & mut app) ;
878- assert_eq ! ( app. diff_pane_scroll, 7 ) ;
881+ assert_eq ! ( app. diff_pane_scroll, 8 ) ;
879882
880883 crate :: tui:: app:: local:: handle_tick ( & mut app) ;
881884 assert_eq ! (
882885 app. diff_pane_scroll, 8 ,
883- "one wheel notch should still total three lines "
886+ "ticks should not add extra scroll after the wheel notch drained "
884887 ) ;
885888}
886889
@@ -923,7 +926,7 @@ fn test_mouse_scroll_over_tool_side_panel_scrolls_shared_right_pane_without_chan
923926 !scroll_only,
924927 "side-panel wheel scroll should request an immediate redraw"
925928 ) ;
926- assert_eq ! ( app. diff_pane_scroll, 6 ) ;
929+ assert_eq ! ( app. diff_pane_scroll, 8 ) ;
927930 assert ! ( !app. diff_pane_focus) ;
928931 assert ! ( !app. diff_pane_auto_scroll) ;
929932}
0 commit comments