chromium/third_party/blink/web_tests/fast/events/touch/gesture/resources/event-delegator.html

<style>
body {
  height: 500px;
  width: 500px;
}
</style>
<script>
var eventTypes = ['mousemove', 'mousedown', 'mouseup', 'click'];
for (var i = 0; i < eventTypes.length; i++)
    document.addEventListener(eventTypes[i], parent.onEventInFrame);
</script>