Skip to content

Commit

Permalink
fix: floor
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken authored Apr 13, 2023
1 parent 714206a commit bef8ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkAnalogClock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function tick() {
}
hAngle = Math.PI * (h % (props.twentyfour ? 24 : 12) + (m + s / 60) / 60) / (props.twentyfour ? 12 : 6);
mAngle = Math.PI * (m + s / 60) / 30;
sAngle = Math.PI * (now.valueOf() / 1000) / 30; // NOTE: 秒針はトランジションするので実際の UNIX 秒から角度を算出する
sAngle = Math.PI * Math.floor(now.valueOf() / 1000) / 30; // NOTE: 秒針はトランジションするので実際の UNIX 秒から角度を算出する
}
tick();
Expand Down

0 comments on commit bef8ecd

Please sign in to comment.