关于 useScrollLock 的请教 #12116
Answered
by
chenjiahan
19Qingfeng
asked this question in
Q&A
关于 useScrollLock 的请教
#12116
-
比较好奇 代码是看懂了,但是不知道这样是为什么解决什么样的问题,请教下代码中为什么要结合 |
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Jul 24, 2023
Replies: 1 comment
-
移动端通常有 touchMove 的判断就够了, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chenjiahan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
移动端通常有 touchMove 的判断就够了,
overflow:hidden
主要还是为了兼容一下 PC 端滚动的场景,以及预防移动端可能存在的边界情况。