mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
Update main.js
This commit is contained in:
committed by
GitHub
Unverified
parent
5fd171bab0
commit
274a499aff
@@ -277,7 +277,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
const isChatBtnHide = typeof chatBtnHide === 'function'
|
const isChatBtnHide = typeof chatBtnHide === 'function'
|
||||||
const isChatBtnShow = typeof chatBtnShow === 'function'
|
const isChatBtnShow = typeof chatBtnShow === 'function'
|
||||||
|
|
||||||
const scroolTask = btf.throttle(() => {
|
const scrollTask = btf.throttle(() => {
|
||||||
const currentTop = window.scrollY || document.documentElement.scrollTop
|
const currentTop = window.scrollY || document.documentElement.scrollTop
|
||||||
const isDown = scrollDirection(currentTop)
|
const isDown = scrollDirection(currentTop)
|
||||||
if (currentTop > 56) {
|
if (currentTop > 56) {
|
||||||
|
|||||||
Reference in New Issue
Block a user