微调交互、样式

This commit is contained in:
tangly1024
2022-12-27 10:44:35 +08:00
parent 7224b102fc
commit 35e2a282d3
3 changed files with 16 additions and 2 deletions

View File

@@ -43,7 +43,15 @@ const Header = props => {
}
}
/**
* 吸附滚动,移动端关闭
* @returns
*/
const scrollTrigger = () => {
if (screen.width <= 768) {
return
}
const scrollS = window.scrollY
// 自动滚动