fix Jump to button not responding in chat after app returns from background (#17085)

This commit is contained in:
Parvesh Monu 2023-08-25 15:11:18 +05:30 committed by GitHub
parent 5148a3c748
commit 89d1bd3f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -116,6 +116,9 @@
(reanimated/apply-animations-to-style (reanimated/apply-animations-to-style
{:transform [{:translate-y translate-y}] {:transform [{:translate-y translate-y}]
:opacity opacity} :opacity opacity}
{:position :absolute {:z-index 1}))
:top 0
:align-self :center})) (def scroll-to-bottom-button
{:position :absolute
:right 0
:left 0})

View File

@ -48,10 +48,10 @@
:label (i18n/label :t/jump-to) :label (i18n/label :t/jump-to)
:style {:align-self :center}}} :style {:align-self :center}}}
{}]] {}]]
[quo/floating-shell-button (when @messages.list/show-floating-scroll-down-button
(when @messages.list/show-floating-scroll-down-button [quo/floating-shell-button
{:scroll-to-bottom {:on-press messages.list/scroll-to-bottom}}) {:scroll-to-bottom {:on-press messages.list/scroll-to-bottom}}
{}]])) style/scroll-to-bottom-button])]))
(defn shell-button (defn shell-button
[state animations subs] [state animations subs]