mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Slightly simplified shake animation in sub tabs for gifts collection.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user