Fixed bottom fade effect for input message fields in compose controls.
This commit is contained in:
parent
3311a50750
commit
0b22e5928c
|
@ -505,7 +505,11 @@ void InitMessageFieldFade(
|
||||||
}, topFade->lifetime());
|
}, topFade->lifetime());
|
||||||
|
|
||||||
topFade->show();
|
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(
|
InlineBotQuery ParseInlineBotQuery(
|
||||||
|
|
Loading…
Reference in New Issue