GithubHelp home page GithubHelp logo

Comments (4)

any86 avatar any86 commented on May 5, 2024

感谢反馈🚀

默认是false, 这个是有意的.

因为"双击"的识别需要让"单击"等待他的"第二下单击", 如果没有"第二下单击"那么"单击"触发, 否则识别为"双击"

基于上面的逻辑, 如果默认开启了"双击", 那么没有"双击"需求的人用的时候就会觉得"单击"反应慢(因为再等双击), 我看下是不是我文档没有写这个说明, 我一会补充上

from any-touch.

any86 avatar any86 commented on May 5, 2024

已更新文档说明

image

from any-touch.

mysea avatar mysea commented on May 5, 2024

感谢反馈🚀

默认是false, 这个是有意的.

因为"双击"的识别需要让"单击"等待他的"第二下单击", 如果没有"第二下单击"那么"单击"触发, 否则识别为"双击"

基于上面的逻辑, 如果默认开启了"双击", 那么没有"双击"需求的人用的时候就会觉得"单击"反应慢(因为再等双击), 我看下是不是我文档没有写这个说明, 我一会补充上

这个我知道,因为移动端是没有“双击”事件的,所谓的“双击”,就是两次间隔时间较短的“单击”,但是刚才在手机上试了,并不是每次双击都会有预期效果,目前不清楚是我点击区域设置不够大还是两次单击间隔时间的问题(比如默认间隔是300ms,实际上可能有时候是500ms,有时候是300ms)

from any-touch.

any86 avatar any86 commented on May 5, 2024

300ms 这个可以改, API文档再这里, https://github.com/any86/any-touch/blob/master/docs/API.md

image

这里还有其他条件, 看看能不能满足你的需求, 比如"位移容差"等

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.