blob: 75aea1d1874dcffcbcd1d20f3739cf9fc00fe3bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<body>
<script>
let touchEvents = ["touchstart", "touchmove", "touchend"];
let pointerEvents = ["pointerdown", "pointermove", "pointerup"];
touchEvents.forEach((event) => {
document.addEventListener(event, (e) => {
parent.postMessage("iframe2 " + e.type, "*");
}, { once: true });
});
pointerEvents.forEach((event) => {
document.addEventListener(event, (e) => {
parent.postMessage("iframe2 " + e.type, "*");
}, { once: true });
});
</script>
</body>
|