微调交互、样式

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

@@ -44,9 +44,15 @@ const Header = props => {
}
}
/**
* 自动吸附滚动,移动端体验不好暂时关闭
*/
const scrollTrigger = () => {
const scrollS = window.scrollY
if (screen.width <= 768) {
return
}
const scrollS = window.scrollY
// 自动滚动
if ((scrollS > windowTop) & (scrollS < window.innerHeight) && !autoScroll
) {