test code for testing original scrolling method on canvas