We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce8967e commit e649b1bCopy full SHA for e649b1b
packages/frontend/src/components/MkAnalogClock.vue
@@ -149,13 +149,7 @@ let sOneRound = false;
149
function tick() {
150
const now = props.now();
151
now.setMinutes(now.getMinutes() + now.getTimezoneOffset() + props.offset);
152
- const previousS = s;
153
- const previousM = m;
154
- const previousH = h;
155
- s = now.getSeconds();
156
- m = now.getMinutes();
157
- h = now.getHours();
158
- if (previousS === s && previousM === m && previousH === h) {
+ if (s === (s = now.getSeconds()) && m === (m = now.getMinutes()) && h === (h = now.getHours())) {
159
return;
160
}
161
hAngle = Math.PI * (h % (props.twentyfour ? 24 : 12) + (m + s / 60) / 60) / (props.twentyfour ? 12 : 6);
0 commit comments