Ahh, ok - just spotted it. If you remove reset() from the draw function that'll fix it.
The scroller sets up a clipping rectangle to avoid you drawing over the widget area - but if you do g.reset() that resets all state including that clipping rect
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh, ok - just spotted it. If you remove
reset()
from thedraw
function that'll fix it.The scroller sets up a clipping rectangle to avoid you drawing over the widget area - but if you do
g.reset()
that resets all state including that clipping rect