From a0811a03b4c799c0504432db73e67acf5a573e9c Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Thu, 26 Oct 2017 16:04:08 +1300 Subject: [PATCH] Speed up animations for auto scrolling --- src/day8/re_frame/trace/components.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/day8/re_frame/trace/components.cljs b/src/day8/re_frame/trace/components.cljs index 7f6d093..e7875d8 100644 --- a/src/day8/re_frame/trace/components.cljs +++ b/src/day8/re_frame/trace/components.cljs @@ -50,7 +50,7 @@ :component-did-update (fn [_] (when (and scroll? @should-scroll) - (scroll! @node [0 (.-scrollTop @node)] [0 (.-scrollHeight @node)] 1600))) + (scroll! @node [0 (.-scrollTop @node)] [0 (.-scrollHeight @node)] 500))) :reagent-render (fn [{:keys [class]} child] [:div {:class class :ref (fn [dom-node]