头部和mixi适配移动端

This commit is contained in:
李志鹏
2026-05-28 09:46:56 +08:00
parent acb06152a0
commit 1ba4bbce03
10 changed files with 360 additions and 17 deletions

View File

@@ -180,7 +180,6 @@ async function handleScroll({ target: root }) {
const elTop_bottom = offsetHeight - (getDocumentTop(el) - offsetTop - rootEl.scrollTop)
const maxHeight = offsetHeight + el.offsetHeight
const p = Math.min(1, Math.max(0, elTop_bottom / maxHeight))
console.log(p)
children.forEach((item) => {
setDocumentStyles(el, item, p)
})