diff --git a/frontend/src/arthur/ui/params.cljs b/frontend/src/arthur/ui/params.cljs index 0747888..3b75692 100644 --- a/frontend/src/arthur/ui/params.cljs +++ b/frontend/src/arthur/ui/params.cljs @@ -170,8 +170,11 @@ (defn- gap-switch [ch path frame set-gap!] (let [ks (sort (keys (:keys ch))) - left (when-not (node/hold-only? path (channel/value-at ch (or frame 0) nil)) - (gap-at ks frame)) + ;; Only a channel with a gap between keys is read; a measured one has + ;; no keys, and its value lives in a store the inspector doesn't hold. + left (when-let [l (gap-at ks frame)] + (when-not (node/hold-only? path (channel/value-at ch frame nil)) + l)) tween? (and left (= :linear (channel/segment-interp ch left)))] (if left [:button.gap {:class (when tween? "on")