an example device includes a touchscreen and a processing system in communication with the touchscreen . the processing system is configured to perform operations including detecting a touch - on position on the touchscreen , setting a reference position based on the touch - on position , continuously detecting subsequent touch positions on the touchscreen after detecting the touch - on , and continuously performing operations based on one or both of a direction and a distance from the reference position to the subsequent touch positions .