mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed bottom fade effect for input message fields in compose controls.
This commit is contained in:
parent
3311a50750
commit
0b22e5928c
1 changed files with 5 additions and 1 deletions
|
@ -505,7 +505,11 @@ void InitMessageFieldFade(
|
|||
}, topFade->lifetime());
|
||||
|
||||
topFade->show();
|
||||
bottomFade->show();
|
||||
bottomFade->showOn(
|
||||
field->scrollTop().value(
|
||||
) | rpl::map([field, descent = field->st().font->descent](int scroll) {
|
||||
return (scroll + descent) < field->scrollTopMax();
|
||||
}) | rpl::distinct_until_changed());
|
||||
}
|
||||
|
||||
InlineBotQuery ParseInlineBotQuery(
|
||||
|
|
Loading…
Add table
Reference in a new issue