Reduce shaking of bottom bar (#2734)

This commit is contained in:
Abdo 2023-10-15 03:06:28 +03:00 committed by GitHub
parent b2d515c8bb
commit bd55149846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ class BottomWebView(ToolbarWebView):
def animate_height(self, height: int) -> None: def animate_height(self, height: int) -> None:
self.web_height = height self.web_height = height
if self.mw.pm.reduce_motion(): if self.mw.pm.reduce_motion() or height == self.height():
self.setFixedHeight(height) self.setFixedHeight(height)
else: else:
# Collapse/Expand animation # Collapse/Expand animation