created sperate method for auto scrolling on graphics thread