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

206
Views
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 answers
Answer question

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 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!