Coder Social home page Coder Social logo

Comments (9)

stackjie avatar stackjie commented on June 1, 2024

fastclick确实会有这个问题😔

from vue-pull-to.

lyh2668 avatar lyh2668 commented on June 1, 2024

之前使用mint-ui的时候也碰到了这个问题,fastclick把touch事件当做是click事件了,fastclick会根据touchMove来区分当前是否为click事件,而由于下拉刷新列表是跟随手指的touch走的,那么touchMove的相对位移没有发生变化,则会被视为click事件...我是怎么理解的 @stackjie 作者大大尝试修复一下哈

from vue-pull-to.

JiejiaH avatar JiejiaH commented on June 1, 2024

handleTouchEnd里面加个event.stopPropagation()就好了

from vue-pull-to.

LeeRayno avatar LeeRayno commented on June 1, 2024

@JiejiaH 测试了没有了? @stackjie 麻烦您有时间了可以改一下,然后我可以试试看行不行。我这个最后把fastclick给禁掉了。

from vue-pull-to.

stackjie avatar stackjie commented on June 1, 2024

ok, 目前fastclick要是不行的话用其它的库代替呗

from vue-pull-to.

stackjie avatar stackjie commented on June 1, 2024

@JiejiaH @LeeRayno thx 刚刚我修改测了下 这方法可行,faskclick是不是把clcik拦截了然后变成touchend事件来触发的?

from vue-pull-to.

LeeRayno avatar LeeRayno commented on June 1, 2024

我记得better-scroll 之前好像也遇到过这个问题,后面不知道怎么解决的,上网搜没有找到答案。你改了发布下,我再试试。

from vue-pull-to.

fan19900404 avatar fan19900404 commented on June 1, 2024

tim 20171130174154

我也遇到这个问题,然后按照上面的说的

handleTouchEnd里面加个event.stopPropagation()

加了之后,果然好了

from vue-pull-to.

stackjie avatar stackjie commented on June 1, 2024

已经修复啦~ 更新0.1.6这个版本,抱歉最近有点忙拖了好久😜

from vue-pull-to.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.