Sha256: bccaffd2d9d262ba8b1d1a0c1a2114129d3c44187b5066639fbd9689a6bf4c9d

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

<!DOCTYPE html>
<html>
<head>
	<title>MooTools Mobile</title>
	<link rel="stylesheet" media="all" type="text/css" href="style.css" />
	<link rel="stylesheet" media="all" type="text/css" href="demo.css" />

	<script type="text/javascript" src="mootools-core.js"></script>
	<script type="text/javascript" src="custom-event.js"></script>

	<script type="text/javascript" src="../Source/Browser/Features.Touch.js"></script>
	<script type="text/javascript" src="../Source/Desktop/Mouse.js"></script>

	<script type="text/javascript" src="../Source/Touch/Swipe.js"></script>

	<script type="text/javascript">
		window.addEvent('domready', function(){
			var element = document.id('myElement'),
				timer;

			element.store('swipe:cancelVertical', true);
			element.addEvent('swipe', function(event){
				this.set('text', 'Swipe ' + event.direction);

				clearTimeout(timer);
				timer = (function(){
					this.set('text', 'Swipe');
				}).delay(500, this);
			});
	});
	</script>
</head>
<body>
	<div id="more">
		<span>Demos</span>
		<a href="index.html">Home</a>
		<a href="swipe.html">Swipe</a>
		<a href="pinch.html">Pinch</a>
		<a href="touchhold.html">Touchhold</a>
	</div>
	<div id="myElement" class="box">
		Swipe
	</div>
</body>
</html>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lsd_rails-0.1.6 Packages/mootools-mobile/Demos/swipe.html
lsd_rails-0.1.5 Packages/mootools-mobile/Demos/swipe.html
lsd_rails-0.1.4 Packages/mootools-mobile/Demos/swipe.html
lsd_rails-0.1.3 Packages/mootools-mobile/Demos/swipe.html
lsd_rails-0.1.2 Packages/mootools-mobile/Demos/swipe.html
lsd_rails-0.1.1 Packages/mootools-mobile/Demos/swipe.html
lsd_rails-0.1 Packages/mootools-mobile/Demos/swipe.html