Tutorial: Trigger handlers

Trigger handlers

touchSwipe Fork me on GitHub

properties: triggerOnTouchEnd, triggerOnTouchLeave

With triggerOnTouchEnd you can trigger the swipe end handler either when the user releases (default) or when the user has swiped the distance / time of the thresholds (but is still swiping).

With triggerOnTouchLeave you can end the event if the user swipes off the element

Swipe below, and the swipeEnd handler will trigger when you have swiped 200 px.

		
			
			
Swipe over 200px and the swipe event will fire

			
					
			
Swipe in under 5000ms and the swipe event will fire

			
			
			
Swipe out of this box and the swipe event will end

			
			
			
Time, distance and trigger on END and trigger on Leave set..