GithubHelp home page GithubHelp logo

[BUG] vue3 绑定@pan事件后,快速拖拽松开拖拽松开操作几次会@pan事件执行的函数会一直叠加 about any-touch HOT 11 CLOSED

any86 avatar any86 commented on May 5, 2024
[BUG] vue3 绑定@pan事件后,快速拖拽松开拖拽松开操作几次会@pan事件执行的函数会一直叠加

from any-touch.

Comments (11)

any86 avatar any86 commented on May 5, 2024

提了3个issue, 都是同一个问题吧? 提供下vue版本和any-touch版本

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

提了3个issue, 都是同一个问题吧? 提供下vue版本和any-touch版本

不一样的问题,any-touch 2.0版本都存在这些问题

from any-touch.

any86 avatar any86 commented on May 5, 2024

好的, 我解决下

from any-touch.

any86 avatar any86 commented on May 5, 2024

你是如何确保拖拽了正好10px的呢?

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

你是如何确保拖拽了正好10px的呢?

10px是我假如的,总之会触发很多次就是了,你试下在移动端上一直短距离的拖拽松开就知道了

from any-touch.

any86 avatar any86 commented on May 5, 2024

移动端是真机吗? 我在谷歌模拟器上测试没有这个问题啊? 我是把我demo中swipe屏蔽了, 一直拖拽, 松开并没有出现拖拽错位, 也就是说没有多余的pan触发啊.
能再具体说下复现过程吗?

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

移动端是真机吗? 我在谷歌模拟器上测试没有这个问题啊? 我是把我demo中swipe屏蔽了, 一直拖拽, 松开并没有出现拖拽错位, 也就是说没有多余的pan触发啊. 能再具体说下复现过程吗?

控制台模拟器和真机都有这问题,这是我代码

import AT from "any-touch";

state.at = new AT(state.touchWrapDOM, {});

from any-touch.

any86 avatar any86 commented on May 5, 2024

1.0版本有吗?

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

1.0版本有吗?

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

没解决怎么就关闭了,还有我发现hammer.js也有这个bug,我自己用touchmove写是没问题的

from any-touch.

any86 avatar any86 commented on May 5, 2024

你在https://codesandbox.io/dashboard/home 上复现下源码吧.
按照你说的用例, 我测试了, 没法复现bug

from any-touch.

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.