Tutorial: Pinch and Swipe

Pinch and Swipe

touchSwipe Fork me on GitHub

events: pinchStatus, swipeStatus

properties: pinchThreshold

You can combine both pinch and swipe events. As the user can simultaneously pinch and swipe, both events are tirggered at the same time.
The pinchThreshold property sets how far the user must pinch before it is considered a pinch. The default is 20px. This is useful when trying to elimate slight pinch movement when the user is actually swiping.

	
				
			
				
Pinch me