Skip to content

Commit

Permalink
fix: add offset option to y coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
valmisson committed Mar 4, 2024
1 parent 4be3a68 commit 0766716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/scrolling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const scrolling = async (
const startY = window.pageYOffset
const startX = window.pageXOffset
const endX = coord.x + offset
const endY = coord.y
const endY = coord.y + offset

await smoothScroll({
start: {
Expand Down

0 comments on commit 0766716

Please sign in to comment.