jump scroll

This commit is contained in:
Luke Berndt
2023-01-26 07:39:37 -05:00
parent 28ac40b3c7
commit 85f467878c

View File

@@ -213,7 +213,7 @@ useLayoutEffect(() => {
if (pageYOffset.current) {
const scrollAmount = parseInt(positionRef.current.clientHeight) - parseInt(pageYOffset.current.position);
if (pageYOffset.current.direction == "top") {
window.scrollBy(0, scrollAmount);
window.scrollBy({left: 0, top: scrollAmount, behavior: "auto"});
} else {
//window.scrollBy(0, -1 * scrollAmount);
}