1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

LibGUI: Remove redundant scroll_into_view() calls in TableView

The calls to set_cursor() already take care of scrolling the new cursor
into view if needed.
This commit is contained in:
Andreas Kling 2020-10-30 23:49:24 +01:00
parent 563d3c8055
commit 66a8e151fb
Notes: sideshowbarker 2024-07-19 01:37:35 +09:00

View file

@ -209,13 +209,11 @@ void TableView::move_cursor(CursorMovement movement, SelectionUpdate selection_u
case CursorMovement::Home: {
auto index = model.index(0, 0);
set_cursor(index, selection_update);
scroll_into_view(index, false, true);
break;
}
case CursorMovement::End: {
auto index = model.index(model.row_count() - 1, 0);
set_cursor(index, selection_update);
scroll_into_view(index, false, true);
break;
}
case CursorMovement::PageUp: {