Skip to content

Commit e88fdc0

Browse files
committed
fixup! Avoid scrolling the selection into view on refresh
1 parent ffb3b48 commit e88fdc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/gui/controllers/list_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ func (self *ListController) handlePageChange(delta int) error {
173173
}
174174
}
175175

176-
self.context.HandleFocus(types.OnFocusOpts{ScrollSelectionIntoView: true})
176+
// Since we are maintaining the scroll position ourselves above, there's no point in passing
177+
// ScrollSelectionIntoView=true here.
178+
self.context.HandleFocus(types.OnFocusOpts{})
177179

178180
return nil
179181
}

0 commit comments

Comments
 (0)