Vux: Tabbar点击报错Unable to preventDefault inside passive event listener due to target being treated as passive

Created on 16 Jan 2017  ·  9Comments  ·  Source: airyland/vux

[email protected]

<template>
  <div>
    <tabbar>
      <tabbar-item>
        <span slot="label">Tab1</span>
      </tabbar-item>
      <tabbar-item>
        <span slot="label">Tab2</span>
      </tabbar-item>
      <tabbar-item>
        <span slot="label">Tab3</span>
      </tabbar-item>
      <tabbar-item>
        <span slot="label">Tab4</span>
      </tabbar-item>
    </tabbar>
  </div>
</template>

<script>
</script>

<style lang="less">
@import '~vux/src/styles/reset.less';

body {
  background-color: #fbf9fe;
}
</style>

<script>
    import { Tabbar, TabbarItem} from 'vux'
    export default{
        components:{
          Tabbar,
          TabbarItem
        }
    }
</script>

image

Being tracked componentabbar not vux's issue

Most helpful comment

增加这一行样式即可
html {
touch-action: manipulation;
}

@zhangolve
@georgezouq

All 9 comments

看起来是fastclick的报错,chrome哪个版本?

@airyland chrome canary浏览器 Version 57.0.2931.0 canary

@airyland 这个问题有进展了吗??

@airyland fastclick 已经两年没更新了。。。

增加这一行样式即可
html {
touch-action: manipulation;
}

@zhangolve
@georgezouq

测试了,并没有用。 @RenShine

@zhangolve @RenShine 测了一下,有用。谢谢分享。

增加这一行样式即可
html {
touch-action: manipulation;
}

@zhangolve
@georgezouq

感谢分享,确实有用

Was this page helpful?
0 / 5 - 0 ratings