Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
Hacer clic en un botón en iPad o Android lento usando Javascript

Si hago clic más rápido que aproximadamente 500 ms, los clics se pierden. Estoy haciendo clic en ABABAB ... También probé onclick, el mismo problema.

  • Prueba aquí: https://christernilsson.github.io/2021/033-MM5040/index.html
  • Código: https://github.com/ChristerNilsson/2021/blob/main/033-MM5040/js/sketch2.js
 body = document.getElementById "body" d = null command = '' start = new Date() f = (title) => res = document.createElement 'button' res.innerHTML = title res.style = "width:300px;height:300px" body.appendChild res res.ontouchstart = => t = new Date() command += title + "#{t-start} " d.innerHTML = command start = t f 'A' f 'B' d = document.createElement 'div' d.innerHTML = '104' body.appendChild d
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Encontré una respuesta.

 ontouchend

Ahora hasta unos 150 ms. Entonces, usaré onclick en Windows/Mac y ontouchend para pantallas táctiles.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!