summaryrefslogtreecommitdiffstats
path: root/dom/events/test/pointerevents/bug_1420589_iframe1.html
blob: b18d808b84e297e33aa1ef1b895a1a7ebee8d03b (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("iframe1 " + e.type, "*");
	        }, { once: true });
	    });
	    pointerEvents.forEach((event) => {
	        document.addEventListener(event, (e) => {
	            parent.postMessage("iframe1 " + e.type, "*");
	        }, { once: true });
	    });
	</script>
</body>