After a certain amount of time, the scrollMatrix stops functioning because it eventually goes out of bounds.
This can be fixed by resetting the scrollMatrix after it has scrolled the length of the input graphic. Add the following code after data.source.pixels.draw(zone.buffer, zone.drawMatrix); in scroll()
if(zone.scrollMatrix.tx <= -zone.region.width)
zone.scrollMatrix.tx = 0;
After a certain amount of time, the scrollMatrix stops functioning because it eventually goes out of bounds.
This can be fixed by resetting the scrollMatrix after it has scrolled the length of the input graphic. Add the following code after
data.source.pixels.draw(zone.buffer, zone.drawMatrix);inscroll()