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:
parent
563d3c8055
commit
66a8e151fb
Notes:
sideshowbarker
2024-07-19 01:37:35 +09:00
Author: https://github.com/awesomekling
Commit: 66a8e151fb
1 changed files with 0 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue