tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

iframe-touch-action-none-subframe.html (521B)


      1 <html>
      2  <style>
      3    body {
      4        width: 200px;
      5        height: 150px;
      6        padding: 0px;
      7        margin: 0px;
      8        background-color: lightgreen
      9    }
     10  </style>
     11  <body></body>
     12  <script>
     13    function handler(e) {
     14        window.top.postMessage({
     15            "type": "subframe-event",
     16            "eventType": e.type
     17        }, "*");
     18    }
     19 
     20    ["pointerup", "pointercancel"].forEach(eventType => {
     21        document.body.addEventListener(
     22            eventType,
     23            handler);
     24    });
     25  </script>
     26 </html>