implement pinch to zoom

This commit is contained in:
marlon-erler
2026-08-30 16:15:14 +02:00
parent ea50704f8a
commit 7eb02f07dc
160 changed files with 15806 additions and 61 deletions
+33
View File
@@ -0,0 +1,33 @@
<html>
<head>
<title>Event</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<a href="/something">link</a>
<script src="../build/build.js"></script>
<script>
var events = require('event');
var a = document.getElementsByTagName('a')[0];
function onclick(e) {
e = e || window.e;
events.unbind(a, 'click', onclick);
console.log(e);
if (e.preventDefault) {
e.preventDefault();
} else {
return false;
}
}
events.bind(a, 'click', onclick);
</script>
</body>
</html>