Don't re-open bottom sheet if now closing

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-07-14 12:15:56 +03:00
parent fa4968f22c
commit b7bc7c4e5d
No known key found for this signature in database
GPG Key ID: C9A094959935A952
1 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@
(fn [] (fn []
(when (and (> height min-height) (when (and (> height min-height)
@visible) @visible)
(animated/block (animated/cond* (animated/not* manual-close)
[(animated/stop-clock clock) [(animated/stop-clock clock)
(animated/set open-snap-point (* -1 sheet-height)) (animated/set open-snap-point (* -1 sheet-height))
(animated/set manual-open 1)]))) (animated/set manual-open 1)])))