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

104
Views
¿Por qué el contexto del lienzo no se traduce por variables globales en el evento onDrag?

Considere el siguiente código HTML:

 <canvas id="taF" draggable="true" ondrag="canvasDragging(event)"> No Canvas Support! </canvas>

Y esto es canvasDragging y context.translate códigos:

 // Canvas Context let contextX = 1000, contextY = 0; context.translate( contextX, contextY ); // Dragging const canvasDragging = ( event ) => { contextX = event.offsetX; contextY = event.offsetY; }

Revisé el event y sus propiedades, pero cuando arrastro el lienzo, el lienzo no se traduce ni cambia su ventana gráfica.

¡Cualquier ayuda sería considerada como una gran ayuda!

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!