Skip to content

Commit ae074a9

Browse files
committed
Update lang.html
1 parent ad5a6cc commit ae074a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

homepage/lang.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@
190190
// scroll listener
191191

192192
const scrollEl = document.documentElement,
193-
scrollEnd = scrollToEl.offsetTop,
193+
title = document.querySelector('.title'),
194+
scrollEnd = title.offsetTop,
194195
logo = document.querySelector('.logo');
195196

196197
window.addEventListener('scroll', () => {

0 commit comments

Comments
 (0)