-
Notifications
You must be signed in to change notification settings - Fork 0
/
mouse-events.htm
171 lines (155 loc) · 8.33 KB
/
mouse-events.htm
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mouse Events -- Free Online Tool</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-title" content="Mouse Events" />
<meta name="application-name" content="Mouse Events" />
<meta property="og:site_name" content="Tool">
<meta property="og:title" content="Mouse Events">
<meta name="description" content="Register and test mouse events with our interactive online tool. Ensure accurate tracking of clicks, movements, and misclicks effortlessly.">
<meta property="og:description" content="Register and test mouse events with our interactive online tool. Ensure accurate tracking of clicks, movements, and misclicks effortlessly.">
<meta property="og:locale" content="en_US">
<meta property="og:type" content="website">
<meta property="og:url" content="https://eakondratiev.github.io/mouse-events.htm">
<link rel="canonical" href="https://eakondratiev.github.io/mouse-events.htm">
<meta name="msapplication-config" content="/assets/icons/browserconfig.xml" />
<meta name="theme-color" content="#444444" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon-180.png" />
<link rel="manifest" href="/assets/icons/manifest.json" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="image/png" href="/assets/icons/favicon-96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="/assets/icons/favicon-32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/assets/icons/favicon-16.png" sizes="16x16" />
<link href="/assets/main.css?20230912" rel="stylesheet" type="text/css" />
<script src="/assets/menu.min.js?20240617"></script>
<script src="/assets/web-app.js"></script>
<style>
.events-log-title {font-size: 10pt; margin-top: 8pt; margin-bottom: 5pt;}
.events-log-title button {float: right;}
.settings {border: solid 1px #ccc; border-radius: 2pt; padding: 4pt; margin: 4pt 0;}
h3.settings-title {font-weight: normal; font-size: 1rem; margin: 0 0 8pt 0;}
.settings label {display: block; margin: 4pt 0; padding: 0;}
.settings input[type=checkbox] {margin-right: 4pt;}
.settings input[type=text] {width: 25pt; text-align: end;}
.event-warning {color: #e00;}
.dblclck-counter {background: #a00; color: #fff; padding: 0 4pt; border-radius: 1pt;}
#mouse-event-field {
background: #def; border:solid 1px #cde; border-radius: 2pt;
color:#000; padding: 24pt; margin: 12pt auto;
text-align: center; cursor: pointer; user-select: none;
transition: 0.5s;}
#mouse-event-field:hover {box-shadow: inset 0 0 10pt 0 #79b;}
#mouse-event-field:active {background: #cde; box-shadow: inset 0 0 25pt 0 #79b;}
#mouse-events-stat {margin: 8pt auto; padding-bottom: 4pt; font-size:0.85rem; line-height: 1.5;}
#mouse-events-stat:not(:empty){ border-bottom: dotted 1pt #ccc;}
#mouse-events-registered { font-size: 0.9rem; margin: 4pt auto;}
#mouse-events-registered:empty:before {content: 'Ready...';}
#mouse-events-registered div {border-bottom: dotted 1pt #999; margin-bottom:4pt; padding-bottom: 4pt;}
#mouse-events-registered div b {background: #380; border-radius:1pt; color: #fff; padding: 0 2pt; margin-right: 2pt;}
#mouse-events-registered div span {white-space:nowrap;}
@media (prefers-color-scheme: dark) {
.settings {border-color: #555;}
#mouse-event-field {
background: #246; border:solid 1px #357; color:#8ac;}
#mouse-event-field:hover {box-shadow: inset 0 0 10pt 0 #68a;}
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- script async src="https://www.googletagmanager.com/gtag/js?id=G-PTBT00LYFH"></!--script -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PTBT00LYFH');
</script>
</head>
<body>
<div class="main-content">
<div class="page-wide header">
<header class="content">
<button class="site-menu-btn" aria-label="Open the site menu">
<div></div>
<div></div>
<div></div>
</button>
<div class="site-title"><a class="site-logo" href="/">TOOL</a></div>
</header>
<nav class="content site-nav" aria-label="Site menu">
<h3 class="site-nav-header">Online Tools</h3>
<ul>
<li class="site-nav-top-item"><a href="file.htm">File Type by Content</a></li>
<li class="site-nav-top-item"><a href="mouse-events.htm">Mouse Events</a></li>
<li class="site-nav-top-item"><a href="regex.htm">Regex Tester</a></li>
<li class="site-nav-top-item"><a href="roman-numerals.htm">Convert a Roman Number</a></li>
<li class="site-nav-top-item"><a href="iprange.htm">IPv4 Ranges</a></li>
<li class="site-nav-top-item"><a href="speed.htm">Speed & Distance</a></li>
<li class="site-nav-top-item"><a href="ws.htm">White Spaces</a></li>
<li class="site-nav-top-item"><a href="floating-point-representation.htm">Representation of Floating-point Numbers 32 and 64 bits</a></li>
<li class="site-nav-top-item"><a href="floating-point-summation.htm">Floating-point Summation</a></li>
</ul>
<h3 class="site-nav-header">Console Tools</h3>
<ul>
<li class="site-nav-top-item"><a href="crd-reader.htm">CRD Reader</a></li>
</ul>
</nav>
</div>
<div class="page-wide">
<div class="content page-content">
<noscript><div>This site requires JavaScript to function properly. Please enable it in your browser settings.</div></noscript>
<div id="incompatible-browser">Please, update your browser.</div>
<h1>Mouse Events</h1>
<p class="description">
Sometimes the mouse can produce several clicks instead of one.
It is known as misclicks. The cause could be anything from the mechanical wear of mouse switches to a poor RF or Bluetooth connection.
This page monitors left and right button clicks and detects whether they are too frequent.
Also, it tracks other events of a pointing device like a touchscreen or a trackpad.
</p>
<div class="settings">
<h3 class="settings-title">Advanced Settings</h3>
<div>
<label><input type="checkbox" max="4" id="settings-only-clicks" accesskey="R"/><u>R</u>egister only clicks</label>
<label>False double-click time <u>t</u>hreshold <input type="text" id="settings-dblclck-threshold" accesskey="T" /> ms</label>
</div>
</div>
<div id="mouse-event-field">
Click or tap here
</div>
<h3 class="events-log-title">Events <button id="btn-reset">Clear</button></h3>
<div id="mouse-events-stat"></div>
<div id="mouse-events-registered"></div>
</div>
</div>
</div>
<div class="page-wide footer">
<div class="footer-menu">
<ul>
<li><a href="crd-reader.htm">CRD File Reader Console App</a></li>
<li><a href="file.htm">Get File Type by Content</a></li>
<li><a href="mouse-events.htm">Mouse Events</a></li>
<li><a href="iprange.htm">IPv4 Ranges</a></li>
<li><a href="regex.htm">Test Regular Expressions</a></li>
<li><a href="roman-numerals.htm">Roman Numerals Converter</a></li>
<li><a href="floating-point-representation.htm">Floating-point Representation, 32/64 bit</a></li>
<li><a href="floating-point-summation.htm">Floating-point Summation</a></li>
<li><a href="speed.htm">Speed & Distance Scale</a></li>
<li><a href="ws.htm">Character Code Detector</a></li>
</ul>
</div>
imperfect <b>tools</b>
</div>
<script src="/assets/mouse-events.min.js?20240118"></script>
<script>
'use strict';
// check for compatibility
if (document.getElementsByClassName === undefined ||
!Element.prototype.addEventListener) {
document.getElementById('incompatible-browser').style.display = 'block';
}
else {
mouseEvents();
}
</script>
</body>
</html>