mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Add hierarchy of GIF pausing inside a window.
GIFs get paused if some other layer is displayed above. Media preview > Box or layer > Saved GIFs panel > Inline bot results. If any of those is displayed, GIFs inside message history pause too.
This commit is contained in:
@@ -2662,7 +2662,6 @@ void MediaView::setVisible(bool visible) {
|
||||
stopGif();
|
||||
destroyThemePreview();
|
||||
_radial.stop();
|
||||
Notify::clipStopperHidden(ClipStopperMediaview);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2903,6 +2902,6 @@ void MediaView::updateHeader() {
|
||||
}
|
||||
|
||||
float64 MediaView::overLevel(OverState control) const {
|
||||
ShowingOpacities::const_iterator i = _animOpacities.constFind(control);
|
||||
auto i = _animOpacities.constFind(control);
|
||||
return (i == _animOpacities.cend()) ? (_over == control ? 1 : 0) : i->current();
|
||||
}
|
||||
|
Reference in New Issue
Block a user