mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix #76 - set scrollTop property of element node rather than use scrollTo() method
This commit is contained in:
parent
b60430fe8f
commit
b304cc07d5
@ -18,7 +18,7 @@ const scrollTop = (node) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
node.scrollTo(0, easingOutQuint(0, elapsed, offset, targetY, duration));
|
node.scrollTop = easingOutQuint(0, elapsed, offset, targetY, duration);
|
||||||
requestAnimationFrame(step);
|
requestAnimationFrame(step);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user