forked from photonstorm/Flixel-Power-Tools
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
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;