mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-27 23:08:02 +02:00
Rerender views if necessary when scrolling horizontally
If the context says it wants to rerender when its width changes, we must also rerender when the horizontal scroll position changes.
This commit is contained in:
parent
9e3e1a7b3a
commit
fa9d75835c
@ -74,6 +74,9 @@ func (self *ListController) scrollHorizontal(scrollFunc func()) error {
|
||||
scrollFunc()
|
||||
|
||||
self.context.HandleFocus(types.OnFocusOpts{})
|
||||
if self.context.NeedsRerenderOnWidthChange() == types.NEEDS_RERENDER_ON_WIDTH_CHANGE_WHEN_WIDTH_CHANGES {
|
||||
self.context.HandleRender()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user