mirror of https://github.com/procxx/kepka.git
Remove thumb glitch when uploading files.
This commit is contained in:
parent
6796ac688a
commit
2cc1fde5e4
|
@ -140,7 +140,7 @@ void HistoryFileMedia::clickHandlerActiveChanged(const ClickHandlerPtr &p, bool
|
|||
if (active && !dataLoaded()) {
|
||||
ensureAnimation();
|
||||
_animation->a_thumbOver.start([this] { thumbAnimationCallback(); }, 0., 1., st::msgFileOverDuration);
|
||||
} else if (!active && _animation) {
|
||||
} else if (!active && _animation && !dataLoaded()) {
|
||||
_animation->a_thumbOver.start([this] { thumbAnimationCallback(); }, 1., 0., st::msgFileOverDuration);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue