GithubHelp home page GithubHelp logo

Comments (9)

1014156094 avatar 1014156094 commented on May 5, 2024 1

那我用start和move吧

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

any-touch 1.0不存在这问题,2.0存在这问题

from any-touch.

any86 avatar any86 commented on May 5, 2024

any-touch 1.0不存在这问题,2.0存在这问题

感谢, 我对比测测

from any-touch.

any86 avatar any86 commented on May 5, 2024

离开触点那下触发了pan, 这个是2.0我有意改动的, 可能和你的直觉不一样了, 这个我再找几个人看看大家的直觉是什么样的, 如果都觉得离开那下不应该, 我再改过来.

你也说下你的场景, 我也权衡下, 是不是我这么改动有问题.

其实离开触点的那次pan事件对应的deltaX/Y是等于0的, 而且距离和位移也都是和上一次的pan一摸一样的. 所以我觉得应该不会影响, 看来是影响1.0用户的代码了, 抱歉.

暂时如果要按照你直觉的pan, 可改成:

at.on(['panstart','panmove'],e=>{

})

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

建议和原生的触发规律一样,这样大家能统一

from any-touch.

any86 avatar any86 commented on May 5, 2024

建议和原生的触发规律一样,这样大家能统一

好的, 但是原生指的是哪个? 安卓还是苹果, 其实1.0哪个应该是我当时的bug, 没有把panend算到pan里, 2.0我发现了, 就改过来了. 我其实不知道这个有规范的.

from any-touch.

any86 avatar any86 commented on May 5, 2024

image
我事件是参考hammer.js模仿的, 这是他的. 他就把panend算到pan里

from any-touch.

1014156094 avatar 1014156094 commented on May 5, 2024

image 我事件是参考hammer.js模仿的, 这是他的. 他就把panend算到pan里

我懂了,@pan就是三合一了

from any-touch.

any86 avatar any86 commented on May 5, 2024

好的, 我解决其他2个

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.