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

308
Views
¿Angular 2 (clic) y (dblclick) en el mismo elemento no funciona bien?

Cuando hago esto:

 <div (click)="func1()" (dblclick)="func2()">Some text</h1>

De hecho, obtengo "func1 ()" para disparar incluso en dblclick dos veces.

¿Cómo puedo hacer que funcione en el mismo elemento y funcione bien?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

No parece ser un problema de Angular. Consulte https://css-tricks.com/snippets/javascript/bind- different-events-to-click-and-double-click/

La solución consiste en no procesar el evento de clic cuando se produce un dblclick poco después.

over 4 years ago · Santiago Trujillo 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!