2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Pass whole point in mapFromGlobal(mapToGlobal).

Fixes #27237.
This commit is contained in:
John Preston
2024-01-09 21:51:05 -08:00
parent 9401e7cb51
commit e2439984ae
5 changed files with 17 additions and 15 deletions

View File

@@ -2742,7 +2742,7 @@ void SessionController::openPeerStories(
HistoryView::PaintContext SessionController::preparePaintContext(
PaintContextArgs &&args) {
const auto visibleAreaTopLocal = content()->mapFromGlobal(
QPoint(0, args.visibleAreaTopGlobal)).y();
args.visibleAreaPositionGlobal).y();
const auto viewport = QRect(
0,
args.visibleAreaTop - visibleAreaTopLocal,