Trackballs have roller sensors built inside the mouse. These roller sensors are calibrated to read X and Y axis movements on each ball. The sensors detect the degrees rotated, which in turn enables scrolling. Rolling the ball with the thumb, fingers, or palm of the hand moves the pointer.