mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Limit to 30 FPS in small stickers.
This commit is contained in:
@@ -1049,7 +1049,8 @@ void MediaPreviewWidget::setupLottie() {
|
||||
|
||||
_lottie = std::make_unique<Lottie::SinglePlayer>(
|
||||
Lottie::ReadContent(_document->data(), _document->filepath()),
|
||||
Lottie::FrameRequest{ currentDimensions() * cIntRetinaFactor() });
|
||||
Lottie::FrameRequest{ currentDimensions() * cIntRetinaFactor() },
|
||||
Lottie::Quality::High);
|
||||
|
||||
_lottie->updates(
|
||||
) | rpl::start_with_next([=](Lottie::Update update) {
|
||||
|
Reference in New Issue
Block a user