Skip to content

Commit 542c948

Browse files
fix scroll top issue
1 parent e35f2b8 commit 542c948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/js/linkable-tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jQuery(function () {
77

88
// Change hash for page-reload
99
$('.wt-tabs.nav-tabs a').on('shown.bs.tab', function (e) {
10-
var scrollPos = $('body').scrollTop();
10+
var scrollPos = $(window).scrollTop();
1111
window.location.hash = e.target.hash;
1212
if (scrollPos !== 0) {
1313
$('html,body').scrollTop(scrollPos);

0 commit comments

Comments
 (0)