Browse Source

enhance(mobile): don't close block modal when swiping right

Tienson Qin 4 months ago
parent
commit
5715a813a1
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/main/mobile/state.cljs

+ 3 - 5
src/main/mobile/state.cljs

@@ -23,12 +23,10 @@
 
 (defn pop-navigation-history!
   []
-  (if (seq @*blocks-navigation-history)
+  (when (seq @*blocks-navigation-history)
     (let [stack (swap! *blocks-navigation-history pop)]
-      (if (empty? stack)
-        (close-block-modal!)
-        (reset! *modal-blocks [(last stack)])))
-    (close-block-modal!)))
+      (when (seq stack)
+        (reset! *modal-blocks [(last stack)])))))
 
 (defonce *popup-data (atom nil))
 (defn set-popup!