Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

204
Vistas
How to drag/move hour and minutes hand in Analog Clock JavaScript

I am using thooClock jquery library for designing an analog clock which work pretty fine. https://github.com/thooyork/thooClock

But now I want to move it's hour and minutes hand similar to this website: https://www.roomrecess.com/Tools/InteractiveClock/play.html

I'm able to click on canvas but not sure how access that specific line stroke

$('#canvas').click(function(e){
    console.log('Canvas clicked');
});

Can anyone please help me with this.

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

From the DOM perspective canvas is a simple element that responds to clicks as a whole. There are sophisticated methods, allowing you to calculate whether you click happened on a hand or not, but it's better to use some higher level libraries to deal with object manipulation over the canvas like fabric.js.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda