This commit is contained in:
WarmUpTill
2025-05-20 21:31:34 +02:00
committed by WarmUpTill
parent 56494480ba
commit 7403a18e96
10 changed files with 20 additions and 19 deletions

View File

@@ -67,7 +67,7 @@ static bool posIsInScrollbar(const QScrollBar *scrollbar, const QPoint &pos)
if (!scrollbar->isVisible()) {
return false;
}
const auto geo = scrollbar->geometry();
const auto &geo = scrollbar->geometry();
const auto globalGeo = QRect(scrollbar->mapToGlobal(geo.topLeft()),
scrollbar->mapToGlobal(geo.bottomRight()));
return globalGeo.contains(pos);