don't use smooth scrolling when chnging fond or resizing chr window. Fixes #7268
This commit is contained in:
parent
1db5fd4b31
commit
8c49afbb13
|
@ -1311,8 +1311,12 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
# used to stay at the end of the textview when we shrink conversation
|
# used to stay at the end of the textview when we shrink conversation
|
||||||
# textview.
|
# textview.
|
||||||
if self.was_at_the_end:
|
if self.was_at_the_end:
|
||||||
self.conv_textview.bring_scroll_to_end(-18, use_smooth=False)
|
if self.conv_textview.at_the_end():
|
||||||
self.was_at_the_end = (adjustment.get_upper() - adjustment.get_value() \
|
# we are at the end
|
||||||
|
self.conv_textview.bring_scroll_to_end(-18)
|
||||||
|
else:
|
||||||
|
self.conv_textview.bring_scroll_to_end(-18, use_smooth=False)
|
||||||
|
self.was_at_the_end = (adjustment.get_upper() - adjustment.get_value()\
|
||||||
- adjustment.get_page_size()) < 18
|
- adjustment.get_page_size()) < 18
|
||||||
|
|
||||||
def on_conversation_vadjustment_value_changed(self, adjustment):
|
def on_conversation_vadjustment_value_changed(self, adjustment):
|
||||||
|
@ -1364,9 +1368,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
if room_jid in gajim.interface.minimized_controls[self.account]:
|
if room_jid in gajim.interface.minimized_controls[self.account]:
|
||||||
groupchat_control = \
|
groupchat_control = \
|
||||||
gajim.interface.minimized_controls[self.account][room_jid]
|
gajim.interface.minimized_controls[self.account][room_jid]
|
||||||
contact = \
|
contact = gajim.contacts.get_contact_with_highest_priority(
|
||||||
gajim.contacts.get_contact_with_highest_priority(self.account, \
|
self.account, room_jid)
|
||||||
room_jid)
|
|
||||||
if contact:
|
if contact:
|
||||||
gajim.interface.roster.draw_contact(room_jid, self.account)
|
gajim.interface.roster.draw_contact(room_jid, self.account)
|
||||||
if groupchat_control:
|
if groupchat_control:
|
||||||
|
|
Loading…
Reference in New Issue