From 65594842fc5109c325ca3093cbb3fcd736fb388e Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Thu, 28 Jul 2016 15:54:10 -0700 Subject: [PATCH] Fix issue with multi digit numbers not scrolling all the way off screen as is the case on the physical pxt. --- sim/libmbit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim/libmbit.ts b/sim/libmbit.ts index 6936cb5c..c01a2a19 100644 --- a/sim/libmbit.ts +++ b/sim/libmbit.ts @@ -725,7 +725,8 @@ namespace pxsim.ImageMethods { board().animationQ.enqueue({ interval: interval, frame: () => { - if (off >= leds.width || off < 0) return false; + //TODO: support right to left. + if (off >= leds.width + 5 || off < 0) return false; stride > 0 ? display.shiftLeft(stride) : display.shiftRight(-stride); let c = Math.min(stride, leds.width - off); leds.copyTo(off, c, display, 5 - stride)