Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Delay can't be removed when using jQuery  #592

@attex

Description

@attex

Hi, i am using a Android 7 Phone with the Chrome Version 78.0.3904...
and I am still getting a 300-350ms delay.

I have no clue how to fix this.

It does not occur on safari.

My meta-tag looks like this:

<meta name="viewport" content="width=device-width">

And I have the css:

touch-action: manipulation;

I manually set a stopwatch to detect my delay an it's always like this:

0ms touchstart
30ms touchend
479ms click

I am using

Cordova: 9.0.0
Android-cordova:8.1.0

EDIT:

After using:

$(document).on("click","#charts_menu",function() { console.log(${new Date().getTime() - timer}ms click); });
instead of:
document.getElementById("charts_menu").addEventListener("click", function(){ console.log(${new Date().getTime() - timer}ms click mans);; });

I do not get the delay of 300ms anymore.
Do i have to refactor my whole code or is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions