diff --git a/CHANGELOG.md b/CHANGELOG.md index 151ac9593..0c2bd123b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -99,7 +99,7 @@ - Dev: BREAKING: Replace custom `import()` with normal Lua `require()`. (#5014) - Dev: Fixed most compiler warnings. (#5028) - Dev: Added the ability to show `ChannelView`s without a `Split`. (#4747) -- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043) +- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043, #5045) ## 2.4.6 diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 6978e361c..003fae9f1 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1501,7 +1501,9 @@ void ChannelView::drawMessages(QPainter &painter, const QRect &area) ctx.isLastReadMessage = false; } - if (areaContainsY(ctx.y) || areaContainsY(ctx.y + layout->getHeight())) + if (areaContainsY(ctx.y) || + areaContainsY(ctx.y + layout->getHeight()) || + (ctx.y < area.y() && layout->getHeight() > area.height())) { auto paintResult = layout->paint(ctx); if (paintResult.hasAnimatedElements)