Fix click area of web page preview article photo.

This commit is contained in:
John Preston 2022-02-01 00:26:52 +03:00
parent 656146c445
commit 9eb20ede33

View file

@ -647,7 +647,7 @@ TextState WebPage::textState(QPoint point, StateRequest request) const {
auto inThumb = false;
if (asArticle()) {
auto pw = qMax(_pixw, lineHeight);
if (style::rtlrect(padding.left() + paintw - pw, 0, pw, _pixh, width()).contains(point)) {
if (style::rtlrect(padding.left() + paintw - pw, tshift, pw, _pixh, width()).contains(point)) {
inThumb = true;
}
paintw -= pw + st::webPagePhotoDelta;