mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 13:39:06 +00:00
Fixed unwanted top offset of dialogs widget when float player opened.
This commit is contained in:
parent
b82fa3112c
commit
18c9ee093b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user