原因可能是
我在項目中使用到了 better-scroll,默認它會阻止 touch 事件。所以在配置中需要加上 click: true 即可。
例如:
mounted () {
this.scroll = new BScroll(this.$refs.wrapper, { mouseWheel: true, click: true, tap: true })
}
原因可能是
我在項目中使用到了 better-scroll,默認它會阻止 touch 事件。所以在配置中需要加上 click: true 即可。
例如:
mounted () {
this.scroll = new BScroll(this.$refs.wrapper, { mouseWheel: true, click: true, tap: true })
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。