Skip to content

Commit

Permalink
Merge pull request #5104 from Textualize/scroll-glitch
Browse files Browse the repository at this point in the history
Fix scroll glitch
  • Loading branch information
willmcgugan authored Oct 10, 2024
2 parents 4d4fb73 + 88b4921 commit 04c2f81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/textual/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,13 +1005,12 @@ def _on_timer_update(self) -> None:
self._update_timer.pause()
if self.is_current and not self.app._batch_count:
if self._layout_required:
self._refresh_layout()
self._refresh_layout(scroll=self._scroll_required)
self._layout_required = False
self._scroll_required = False
self._dirty_widgets.clear()
elif self._scroll_required:
self._refresh_layout(scroll=True)
self._scroll_required = False
self._scroll_required = False

if self._repaint_required:
self._dirty_widgets.clear()
Expand Down

0 comments on commit 04c2f81

Please sign in to comment.