Repository navigation
Expand file tree
/
Copy pathcustomteventtest.html
More file actions
104 lines (87 loc) · 3.26 KB
/
Copy pathcustomteventtest.html
File metadata and controls
104 lines (87 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Deep Tissue Real Tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
html, body {
cursor: default;
height: 100%;
-ms-scroll-translation: vertical-to-horizontal;
-ms-user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-ms-touch-action:none;
}
html {
overflow: hidden;
-webkit-text-size-adjust: none; /* Prevent font scaling in landscape */
}
body {
-ms-content-zooming: none;
font-family: 'Segoe UI', 'Segoe WP', sans-serif;
font-size: 11pt;
letter-spacing: 0.02em;
margin: 0px;
padding: 0px;
}
.touch-area
{
background-color: #f00;
width: 120px;
height: 320px;
display: block;
margin: 24px;
overflow: hidden;
}
.touch-log
{
background-color: #808080;
width: 300px;
height: 100px;
display: block;
margin: 24px;
color: #fff;
}
.touch-target
{
-ms-touch-action:none;
}
</style>
</head>
<body>
<header>
<h1>Move Test</h1>
</header>
<section class="touch-area">
<div class="scroll-wrapper">
<ul class="touch-target">
<li>blah blah bal</li>
<li>blah blah bal</li>
<li>blah blah bal</li>
<li>blah blah bal</li>
<li>blah blah bal</li>
<li>blah blah bal</li>
<li>blah blah bal</li>
<li>blah blah bal</li>
</ul>
</div>
</section>
<section class="touch-log">Log Goes Here</section>
<script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="js/dev/deeptissue.js" type="text/javascript"></script>
<script src="js/dev/deeptissue.gesturechange.js" type="text/javascript"></script>
<script type="text/javascript">
var node = document.querySelector(".touch-area"),
event = document.createEvent("Event");
event.initEvent("myEvent", false, false);
event.target = node;
node.dispatchEvent(event);
node.addEventListener("myEvent", function (e) {
alert("the event fired!!");
}, false);
</script>
</body>
</html>