Fixed unwanted top offset of dialogs widget when float player opened.

This commit is contained in:
23rd 2024-09-04 14:44:21 +03:00 committed by John Preston
parent b82fa3112c
commit 18c9ee093b

View file

@ -3326,7 +3326,9 @@ void Widget::updateControlsGeometry() {
}
const auto wasScrollTop = _scroll->scrollTop();
const auto newScrollTop = (_topDelta < 0 && wasScrollTop <= 0)
const auto newScrollTop = (wasScrollTop == 0)
? wasScrollTop
: (_topDelta < 0 && wasScrollTop <= 0)
? wasScrollTop
: (wasScrollTop + _topDelta);