Skip to content

[html] 第206天 移动端点击300ms的延迟出现的原因是什么?你的解决方案是什么? #1492

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第206天 移动端点击300ms的延迟出现的原因是什么?你的解决方案是什么?

我也要出题

Activity

NicholasBaiYa

NicholasBaiYa commented on Nov 8, 2019

@NicholasBaiYa

区分单击 or 双击。
头部加个禁止缩放。

brady0316

brady0316 commented on Nov 8, 2019

@brady0316

原因:早期IOS为了区分用户是双击缩放还是点击链接行为,于是就有了300ms延迟,其他浏览器就效仿了。
解决办法:1,引入fastclick,一了百了;2、在meta禁用浏览器缩放;3、touch事件模拟

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@brady0316@NicholasBaiYa

        Issue actions

          [html] 第206天 移动端点击300ms的延迟出现的原因是什么?你的解决方案是什么? · Issue #1492 · haizlin/fe-interview