Skip to content

Commit 858c920

Browse files
committed
clean: remove console.log
1 parent 0a16567 commit 858c920

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/scrollTo.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ export default function scrollTo(
3636
scrollEl.scrollBy(
3737
0,
3838
rect.top -
39-
(winHeight / 2 - rect.height / 2) -
40-
this._options.scrollPadding
39+
(winHeight / 2 - rect.height / 2) -
40+
this._options.scrollPadding
4141
); // 30px padding from edge to look nice
4242

4343
//Scroll down
4444
} else {
4545
scrollEl.scrollBy(
4646
0,
4747
rect.top -
48-
(winHeight / 2 - rect.height / 2) +
49-
this._options.scrollPadding
48+
(winHeight / 2 - rect.height / 2) +
49+
this._options.scrollPadding
5050
); // 30px padding from edge to look nice
5151
}
5252
}

0 commit comments

Comments
 (0)