         (reset! swipe-object (js/Swipe (reagent/dom-node this)
                                        (clj->js {:continuous false
                                                  :slideStopCallback (fn [slide-index-chanded? index]
-                                                                      (reset! (:percent-swiped animation-state)
-                                                                              (if slide-index-chanded?
-                                                                                (if (< 0 @(:percent-swiped animation-state))
-                                                                                  -1
-                                                                                  1)
-                                                                                0))
                                                                       (cond
                                                                         (< index @current-index)
                                                                         ;; slide left

            selected? (condp = (-> @nav :item-path count)
                        0 (-> @nav :next-item-id (= story-id))
                        1 (-> @nav :item-path first (= story-id))
                        false)
            animate? (and selected? (or (= @bg-alpha 0) (= @bg-alpha 1)))]
        (if (not story)
          [:div]
          ;; :a {:href (story "url")}
          [:div.story {:style {:display "flex"
                               :justify-content "space-between"
                               :align-items "baseline"
                               :padding "16px 10px"
                               ;; swipe highlight
                               :background-color (if selected?
                                                   (format/format "rgba(150,150,150,%s)" @bg-alpha)
                                                   "inherit")
                               :transition-duration (if animate? "300ms" "0") ;; default duration of swipe.js (options.speed)
                               :transition-property (if animate? "background-color" "")}
                       :class (if selected? (str "selected") (str "not-selected"))
                       :data-item-id (story "id")}
           [:div {:style {:flex "0 1 auto" :width "100%"}}
            (story "title")]
           [:div {:style {:flex "5ex" :text-align "right"}}
            [:span (story "descendants")]]])))))

                                                                        ;; slide right
                                                                        (dispatch [:navigation-down]))
                                                                      (reset! current-index index))
                                                 :slideStartCallback (fn [slide-element]
                                                                       (reset! (:percent-swiped animation-state) 0)
                                                                       (let [item-id (not-empty (find-element-item-id slide-element))]
