Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (51 sloc) 1.4 KB
<!DOCTYPE html>
<meta charset="utf-8">
<title>Zepto touch functional test</title>
<meta name="viewport" content="maximum-scale=1,initial-scale=1,user-scalable=0">
<script src="../src/polyfill.js"></script>
<script src="../src/zepto.js"></script>
<script src="../src/event.js"></script>
<script src="../src/touch.js"></script>
<h1>Zepto touch functional test</h1>
<div id="touch_test" style="width: 200px; height: 200px; background: #ddd; -webkit-user-select: none">
touch events test
<div id="browser"> </div>
$('body').bind('touchmove', function(e){ e.preventDefault() })
$(this).append(' | tap!')
$(this).append(' | double tap!')
$(this).append(' | swipe!')
$(this).append(' | swipe left!')
$(this).append(' | swipe right!')
$(this).append(' | swipe up!')
$(this).append(' | swipe down!')
$(this).append(' | long tap!')
$(this).append(' | single tap!')
Jump to Line
Something went wrong with that request. Please try again.