Improved the pointer movement direction.