Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MarsWgl opened this issue Jan 16, 2017 · 9 comments

Comments

@MarsWgl
Copy link

MarsWgl commented Jan 16, 2017

vux@2.0.11

<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

@airyland
Copy link
Owner

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

@MarsWgl
Copy link
Author

MarsWgl commented Jan 16, 2017

@airyland chrome canary浏览器 Version 57.0.2931.0 canary

@airyland
Copy link
Owner

ftlabs/fastclick#510
等待fastclick更新。

@georgezouq
Copy link

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

@zhangolve
Copy link

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

@RenShine
Copy link

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

@zhangolve
@georgezouq

@zhangolve
Copy link

zhangolve commented Aug 23, 2018

测试了,并没有用。 @RenShine

@hsiunjui
Copy link

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

@ListenLove
Copy link

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

@zhangolve
@georgezouq

感谢分享,确实有用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants