Gesture/tap calculations.