diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index 7c189084e..6e017b597 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -1193,10 +1193,18 @@ void Message::draw(Painter &p, const PaintContext &context) const { } } - if (customHighlight) { - media->drawHighlight(p, context, localMediaTop); - } else { - paintHighlight(p, context, fullGeometry.height()); + { + if (selectionTranslation) { + p.translate(-selectionTranslation, 0); + } + if (customHighlight) { + media->drawHighlight(p, context, localMediaTop); + } else { + paintHighlight(p, context, fullGeometry.height()); + } + if (selectionTranslation) { + p.translate(selectionTranslation, 0); + } } const auto roll = media ? media->bubbleRoll() : Media::BubbleRoll();