mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Remove thumb glitch when uploading files.
This commit is contained in:
parent
6796ac688a
commit
2cc1fde5e4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue