mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02: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()) {
|
if (active && !dataLoaded()) {
|
||||||
ensureAnimation();
|
ensureAnimation();
|
||||||
_animation->a_thumbOver.start([this] { thumbAnimationCallback(); }, 0., 1., st::msgFileOverDuration);
|
_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);
|
_animation->a_thumbOver.start([this] { thumbAnimationCallback(); }, 1., 0., st::msgFileOverDuration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue