Skip to content

Commit

Permalink
Add ports to github pages version
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddlyburge committed Jul 26, 2023
1 parent 9542af2 commit 6eb1394
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
<body>
<script>
Elm.Main.init();

app.ports.releasePointerCapture.subscribe( event => {
event.target.releasePointerCapture(event.pointerId)
})

window.addEventListener("pointermove", (event) => {
app.ports.onPointerMove.send(event);
});

window.addEventListener("pointerup", (event) => {
app.ports.onPointerUp.send(event);
});
</script>
</body>
</html>

0 comments on commit 6eb1394

Please sign in to comment.