mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix click area of web page preview article photo.
This commit is contained in:
parent
656146c445
commit
9eb20ede33
1 changed files with 1 additions and 1 deletions
|
@ -647,7 +647,7 @@ TextState WebPage::textState(QPoint point, StateRequest request) const {
|
||||||
auto inThumb = false;
|
auto inThumb = false;
|
||||||
if (asArticle()) {
|
if (asArticle()) {
|
||||||
auto pw = qMax(_pixw, lineHeight);
|
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;
|
inThumb = true;
|
||||||
}
|
}
|
||||||
paintw -= pw + st::webPagePhotoDelta;
|
paintw -= pw + st::webPagePhotoDelta;
|
||||||
|
|
Loading…
Add table
Reference in a new issue