diff --git a/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp b/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp index b0dba7ecb..4c9e3277c 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp @@ -441,7 +441,7 @@ TextState UnwrappedMedia::textState(QPoint point, StateRequest request) const { } if (recth) { int rectx = _additionalOnTop - ? (rightAligned ? (inner.width() + st::msgReplyPadding.left() - rectw) : 0) + ? (rightAligned ? (inner.x() + inner.width() - rectw) : 0) : (rightAligned ? 0 : (inner.width() + st::msgReplyPadding.left())); int recty = surrounding.height - recth; if (rtl()) rectx = width() - rectx - rectw;