scroll-swipe
Version:
a lightweight Events API for detecting scroll and touch events based on custom sensitivity
14 lines (13 loc) • 509 B
HTML
<html>
<head>
<title>scroll swipe example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body style="height: 100vh">
<div>scroll swipe example (move around and check your console!) Instantiate with a higher number for sensitivity to get longer delays between events (I like 4 the best)</div>
<button id="kill">Kill Event Listeners</button>
<button id="restart">Restart Event Listeners</button>
<script src="js/bundle.js"></script>
</body>
</html>