2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 01:16:12 +00:00

Clip intro animation by Next button.

This commit is contained in:
John Preston
2019-11-29 16:42:42 +03:00
parent 66961dce83
commit 524d64a462
3 changed files with 13 additions and 0 deletions

View File

@@ -639,6 +639,9 @@ void Widget::updateControlsGeometry() {
nextTop,
shownAmount);
_next->moveToLeft((width() - _next->width()) / 2, realNextTop);
getStep()->setShowAnimationClipping(shownAmount > 0
? QRect(0, 0, width(), realNextTop)
: QRect());
if (_changeLanguage) {
_changeLanguage->moveToLeft((width() - _changeLanguage->width()) / 2, _next->y() + _next->height() + _changeLanguage->height());
}