forked from ftlabs/fastclick
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path22.html
More file actions
22 lines (22 loc) · 889 Bytes
/
22.html
File metadata and controls
22 lines (22 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style type="text/css">
p { font-family: sans-serif; }
textarea { width: 25em; height: 10em; }
</style>
<title>#22</title>
<script type="application/javascript" src="../lib/fastclick.js"></script>
<script type="application/javascript">
window.addEventListener('load', function() {
new FastClick(document.body);
}, false);
</script>
</head>
<body>
<textarea>FastClick is instantiated on the document body. Tap this textarea to gain focus.</textarea>
<p>On Android 4, single pressing the textarea should produce a cursor. Long-pressing a word should bring up the double arrow indicator for selection. It should be possible to move the indicators.</p>
<p>Tapping on a word with a squiggly red underline should bring up the spelling suggestion box.</p>
</body>
</html>