Speed up animations for auto scrolling

This commit is contained in:
Daniel Compton 2017-10-26 16:04:08 +13:00
parent 70d20af6e7
commit a0811a03b4
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
:component-did-update :component-did-update
(fn [_] (fn [_]
(when (and scroll? @should-scroll) (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 :reagent-render
(fn [{:keys [class]} child] (fn [{:keys [class]} child]
[:div {:class class :ref (fn [dom-node] [:div {:class class :ref (fn [dom-node]