1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18

content / test / data / page_with_touch_start_default_prevented.html [blame]

<!DOCTYPE html>
<html style="width: 100%; height: 100%">
<head>
  <script>
    window.addEventListener('load', function(){ // on page load
      document.body.addEventListener('touchstart',
                                      function(e){
                                        e.preventDefault();
                                      }, { passive: false });
    }, false);
  </script>
</head>

<!-- Be sure to set 100% width/height so the test can determine an appropriate
     screen region for targeting events. -->
<body style="width: 100%; height: 100%">
</body>
</html>