diff --git a/sim/visuals/microbit.ts b/sim/visuals/microbit.ts index 3cd4c9b5..1e9d003e 100644 --- a/sim/visuals/microbit.ts +++ b/sim/visuals/microbit.ts @@ -396,6 +396,7 @@ namespace pxsim.visuals { const transfrom = imgbr > 0 ? imgbr / 255 * 0.4 + 0.6 : 0; sel.style.opacity = (opacity / 255) + ""; if (transfrom > 0) { + (sel.style as any).transformBox = 'fill-box'; sel.style.transformOrigin = '50% 50%'; sel.style.transform = `scale(${transfrom})`; }