We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a16567 commit 858c920Copy full SHA for 858c920
src/util/scrollTo.ts
@@ -36,17 +36,17 @@ export default function scrollTo(
36
scrollEl.scrollBy(
37
0,
38
rect.top -
39
- (winHeight / 2 - rect.height / 2) -
40
- this._options.scrollPadding
+ (winHeight / 2 - rect.height / 2) -
+ this._options.scrollPadding
41
); // 30px padding from edge to look nice
42
43
//Scroll down
44
} else {
45
46
47
48
- (winHeight / 2 - rect.height / 2) +
49
+ (winHeight / 2 - rect.height / 2) +
50
51
}
52
0 commit comments