提交 eee74a4a 编写于 作者: D DCloud_LXH

fix(app): scroll-view set scrolling invalid

上级 04e92a26
......@@ -9,6 +9,7 @@ import {
onActivated,
watch,
SetupContext,
nextTick,
} from 'vue'
import { passive } from '@dcloudio/uni-shared'
import { initScrollBounce, disableScrollBounce } from '../../helpers/scroll'
......@@ -481,8 +482,10 @@ function useScrollViewLoader(
}
onMounted(() => {
_scrollTopChanged(scrollTopNumber.value)
_scrollLeftChanged(scrollLeftNumber.value)
nextTick(() => {
_scrollTopChanged(scrollTopNumber.value)
_scrollLeftChanged(scrollLeftNumber.value)
})
_scrollIntoViewChanged(props.scrollIntoView)
let __handleScroll = function (event: Event) {
// Unable to preventDefault inside passive event listener invocation.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册