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

Delay can't be removed when using jQuery #592

Open
attex opened this issue Dec 6, 2019 · 0 comments
Open

Delay can't be removed when using jQuery #592

attex opened this issue Dec 6, 2019 · 0 comments

Comments

@attex
Copy link

attex commented Dec 6, 2019

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?

@attex attex changed the title Delay can't be removed Delay can't be removed when using jQuery Dec 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant