|
@@ -21,9 +21,10 @@ const TimerPresentation = ({ seconds, refresh }: ITimerPresentationProps) => {
|
|
|
'[data-second-hand]',
|
|
|
) as HTMLDivElement;
|
|
|
function setClock() {
|
|
|
+ console.log(seconds, seconds / 60, seconds / 60 / 60);
|
|
|
const secondsRatio = seconds / 60;
|
|
|
- const minutesRatio = (secondsRatio + secondsRatio) / 60;
|
|
|
- const hoursRatio = (minutesRatio + secondsRatio / 12) / 12;
|
|
|
+ const minutesRatio = seconds / 60 / 60;
|
|
|
+ const hoursRatio = seconds / 60 / 60 / 12;
|
|
|
setRotation(secondHand, secondsRatio);
|
|
|
setRotation(minuteHand, minutesRatio);
|
|
|
setRotation(hourHand, hoursRatio);
|