Speed up animations for auto scrolling
This commit is contained in:
parent
70d20af6e7
commit
a0811a03b4
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue