code: private void scrollAction() {
  
          if (m_scrollEnabled) {
  
              Direction direction = getScrollDirection(50);
              if ((m_scrollTimer != null) && (m_scrollDirection != direction)) {
                  clearScrollTimer();
              }
              if ((direction != null) && (m_scrollTimer == null)) {
                  m_scrollTimer = new CmsScrollTimer(
                      m_scrollElement != null ? m_scrollElement : RootPanel.getBodyElement(),
                      20,
                      direction);
                  m_scrollTimer.scheduleRepeating(10);
              }
  
              m_scrollDirection = direction;
          }
      }
docs: Handles automated scrolling.<p>