Example #1
0
        public void ScrollWheelAbsolute(int dx, int dy)
        {
            Log.DebugFormat("Scrolling wheel by <{0},{1}> in absolute units.", dx, dy);

            if (dx != 0 && dy != 0)
            {
                publishService.ScrollMouseWheelAbsoluteHorizontal(dx);
                Thread.Sleep(DEFAULT_SLEEP_MS);
                publishService.ScrollMouseWheelAbsoluteVertical(dy);
            }
            else if (dx != 0)
            {
                publishService.ScrollMouseWheelAbsoluteHorizontal(dx);
            }
            else if (dy != 0)
            {
                publishService.ScrollMouseWheelAbsoluteVertical(dy);
            }
        }