From 93d382c4162cf22aa24453c7acc55cc088beaf40 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 28 Sep 2025 12:20:24 +0300 Subject: [PATCH] Slightly simplified shake animation in sub tabs for gifts collection. --- Telegram/SourceFiles/ui/controls/sub_tabs.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Telegram/SourceFiles/ui/controls/sub_tabs.cpp b/Telegram/SourceFiles/ui/controls/sub_tabs.cpp index 0cb27c78d5..57273b05f9 100644 --- a/Telegram/SourceFiles/ui/controls/sub_tabs.cpp +++ b/Telegram/SourceFiles/ui/controls/sub_tabs.cpp @@ -631,13 +631,6 @@ void SubTabs::shakeTransform( ? anim::interpolateF(0, -kMaxTranslation, (pY - kYStep * 2.) / kYStep) : anim::interpolateF(-kMaxTranslation, 0, (pY - kYStep * 3) / kYStep); - const auto center = position + QPoint( - _buttons[index].geometry.width() / 2, - _buttons[index].geometry.height() / 2); - - p.translate(center); - p.rotate(angle); - p.translate(-center); p.translate(x, y); }