解決 scroll-view 元件 [Intervention] 報錯

蓦然JL發表於2024-03-23

[Intervention]Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted 解決報錯

解決 scroll-view 元件 [Intervention] 報錯

如下圖,因為事件冒泡, scroll-view 元件的 touchmove 事件可以傳遞到模態框。

解決 scroll-view 元件 [Intervention] 報錯

於是我給 scroll-view 取消冒泡 報錯沒了,問題成功解決。

@touchmove.stop

解決 scroll-view 元件 [Intervention] 報錯

相關文章