Skip to content

Commit

Permalink
clean: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
clemdesign committed Mar 23, 2023
1 parent 0a16567 commit 858c920
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/scrollTo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ export default function scrollTo(
scrollEl.scrollBy(
0,
rect.top -
(winHeight / 2 - rect.height / 2) -
this._options.scrollPadding
(winHeight / 2 - rect.height / 2) -
this._options.scrollPadding
); // 30px padding from edge to look nice

//Scroll down
} else {
scrollEl.scrollBy(
0,
rect.top -
(winHeight / 2 - rect.height / 2) +
this._options.scrollPadding
(winHeight / 2 - rect.height / 2) +
this._options.scrollPadding
); // 30px padding from edge to look nice
}
}
Expand Down

0 comments on commit 858c920

Please sign in to comment.