From: Eugen Rochko Date: Thu, 6 Oct 2016 14:18:32 +0000 (+0200) Subject: Fix #76 - set scrollTop property of element node rather than use scrollTo() method X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b304cc07d525fdf0843cac419fa0e8e4bdda714e;p=mastodon.git Fix #76 - set scrollTop property of element node rather than use scrollTo() method --- diff --git a/app/assets/javascripts/components/features/ui/components/column.jsx b/app/assets/javascripts/components/features/ui/components/column.jsx index 8d29243cf..499e5f4a5 100644 --- a/app/assets/javascripts/components/features/ui/components/column.jsx +++ b/app/assets/javascripts/components/features/ui/components/column.jsx @@ -18,7 +18,7 @@ const scrollTop = (node) => { return; } - node.scrollTo(0, easingOutQuint(0, elapsed, offset, targetY, duration)); + node.scrollTop = easingOutQuint(0, elapsed, offset, targetY, duration); requestAnimationFrame(step); };