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

295
Views
d3.pointer no funciona con touch (d3.js, v7)

Tengo el siguiente problema:

Implementé un globo usando d3 v7. Para hacer que el globo se pueda arrastrar, he agregado las funciones requeridas. Con el ratón todo funciona de maravilla. Pero luego noté que el toque no funciona con esta versión.

 gpos0 = projection.invert(d3.pointer(event, this));

Si ahora cambio mi versión d3 a v5 y muestro el código como se muestra a continuación. Entonces el toque funciona.

 gpos0 = projection.invert(d3.mouse(this));

¿Hay algo que deba tener en cuenta para la versión 7 o agregar que también funciona con el tacto?

about 4 years ago · Juan Pablo Isaza
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!