swipe

Source
Output
QRCode
<!doctype html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-touch-fullscreen" content="yes"> <style type="text/css"> body{ background: #fff; } </style> <script src="//g.alicdn.com/kissy/k/5.0.1/seed.js" data-config="{combine:true}"></script> </head> <body> <h1>open in ios safari/chrome mobile to test swipe event</h1> <div id='t' tabindex='0' style='border:1px solid green; width:200px;height:200px;margin:10px'> swipe me </div> <div style="height: 1080px"></div> <script> require(['event-dom', 'event-dom/gesture/swipe'], function (DomEvent, GestureSwipe) { DomEvent.on('#t', GestureSwipe.SWIPE, function (e) { alert('swipe direction : ' + e.direction); }); }); </script> </body> </html>