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

148
Views
Nombres para las coordenadas X/Y de una función de parámetro addEventListener

En el siguiente código, addEventListener toma una función como parámetro. Mi pregunta es dónde puedo encontrar la documentación para las evt.x y evt.y

 canvas.addEventListener("click", getCoords); function getCoords(evt){ console.log(evt.x, evt.y); }

Vi en otra pregunta de stackoverflow que en lugar de un lienzo cuando el objeto de ventana usaba evt.x se convierte en evt.clientX y evt.y se convierte en evt.clientY

 window.addEventListener("click",function(evt){ console.log(evt.clientX , evt.clientY ); });
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

MDN Docs dice que x, y son solo alias para clientX y clientY

Puede encontrar los documentos mdn aquí: https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event

about 4 years ago · Santiago Gelvez 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!