PageSourceSearch

https://www.houstonlanding.org/srv/htdocs/wp-content/plugins/houst…//js/helpers/gestures.js?ver=5256

js houstonlanding.org collected 2026-09-24 09:04:20 UTC 869 bytes, 32 lines download raw bytes

1const Gesture = (function() {
2
3	return {
4		swipe: function(containerNode, leftSwipeCallback, rightSwipeCallback) {
5			let touchstartX = touchstartY = touchendX = touchendY = 0
6			const gestureZone = containerNode
7
8			let swipeTimeout
9
10			gestureZone.addEventListener('touchstart', function(event) {
11				clearTimeout(swipeTimeout)
12
13		    touchstartX = event.changedTouches[0].screenX
14		    touchstartY = event.changedTouches[0].screenY
15			}, false)
16
17			gestureZone.addEventListener('touchend', function(event) {
18		    touchendX = event.changedTouches[0].screenX
19		    touchendY = event.changedTouches[0].screenY
20		    
21		    if (touchendX < touchstartX) {
22		    	swipeTimeout = setTimeout(() => leftSwipeCallback(), 100 )
23		    }
24	    	if (touchendX > touchstartX) {
25	    		swipeTimeout = setTimeout(() => rightSwipeCallback(), 100 )
26	    	}
27
28			}, false)
29		}
30	}
31
32})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.