头部和mixi适配移动端
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user