1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2025-01-24 14:37:20 +00:00

Fix #76 - set scrollTop property of element node rather than use scrollTo() method

This commit is contained in:
Eugen Rochko 2016-10-06 16:18:32 +02:00
parent b60430fe8f
commit b304cc07d5

View 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);
};