Skip to content

Commit ab93f3f

Browse files
committed
fix(spinner): working in firefox and edge
fixes #8714
1 parent e68b5fc commit ab93f3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/spinner/spinner.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ const SPINNERS: any = {
261261
return {
262262
r: 5,
263263
style: {
264-
top: 9 * Math.sin(2 * Math.PI * index / total),
265-
left: 9 * Math.cos(2 * Math.PI * index / total),
264+
top: (9 * Math.sin(2 * Math.PI * index / total)) + 'px',
265+
left: (9 * Math.cos(2 * Math.PI * index / total)) + 'px',
266266
[CSS.animationDelay]: -(dur - ((dur / total) * index)) + 'ms'
267267
}
268268
};
@@ -276,8 +276,8 @@ const SPINNERS: any = {
276276
return {
277277
r: 5,
278278
style: {
279-
top: 9 * Math.sin(2 * Math.PI * index / total),
280-
left: 9 * Math.cos(2 * Math.PI * index / total),
279+
top: (9 * Math.sin(2 * Math.PI * index / total)) + 'px',
280+
left: (9 * Math.cos(2 * Math.PI * index / total)) + 'px',
281281
[CSS.animationDelay]: -(dur - ((dur / total) * index)) + 'ms'
282282
}
283283
};
@@ -302,7 +302,7 @@ const SPINNERS: any = {
302302
return {
303303
r: 6,
304304
style: {
305-
left: (9 - (9 * index)),
305+
left: (9 - (9 * index)) + 'px',
306306
[CSS.animationDelay]: -(110 * index) + 'ms'
307307
}
308308
};

0 commit comments

Comments
 (0)