]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #76 - set scrollTop property of element node rather than use scrollTo() method
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 14:18:32 +0000 (16:18 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Oct 2016 14:18:32 +0000 (16:18 +0200)
app/assets/javascripts/components/features/ui/components/column.jsx

index 8d29243cff8f8f1919b84ff75e67d4cc475275a5..499e5f4a5803680151109f5eaa513da23638f917 100644 (file)
@@ -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);
   };