mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed unwanted top offset of dialogs widget when float player opened.
This commit is contained in:
parent
b82fa3112c
commit
18c9ee093b
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue