# HG changeset patch # User Goffi # Date 1500013969 -7200 # Node ID 7df0a77a5064227091e40e3f8dcc3d119b0679b6 # Parent 01877048c94a93b71c0479b30b0a27763a6c312d primitivus (chat): only scroll down if we are at the bottom of the discussion diff -r 01877048c94a -r 7df0a77a5064 frontends/src/primitivus/chat.py --- a/frontends/src/primitivus/chat.py Thu Jul 13 22:49:37 2017 +0200 +++ b/frontends/src/primitivus/chat.py Fri Jul 14 08:32:49 2017 +0200 @@ -449,7 +449,10 @@ else: wid = MessageWidget(message) self.mess_walker.append(wid) - self.mess_widgets.focus_position = len(self.mess_walker) - 1 # scroll down + current_focus = self.mess_widgets.focus_position + bottom = len(self.mess_walker) - 1 + if current_focus == bottom - 1: + self.mess_widgets.focus_position = bottom # scroll down self.host.redraw() # FIXME: should not be necessary if self._user_moved(message): return # no notification for moved messages