Skip to content

Commit

Permalink
Added event handlers for touchscreen support in keygen page (paint ca…
Browse files Browse the repository at this point in the history
…nvas).
  • Loading branch information
GlitchedPolygons committed Dec 15, 2023
1 parent a30baa0 commit 80aafc8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,15 @@
}
paintCanvas.addEventListener('mousedown', startDrawing);
paintCanvas.addEventListener('touchstart', startDrawing);
paintCanvas.addEventListener('mousemove', drawLine);
paintCanvas.addEventListener('touchmove', drawLine);
paintCanvas.addEventListener('mouseup', stopDrawing);
paintCanvas.addEventListener('mouseout', stopDrawing);
paintCanvas.addEventListener('touchend', stopDrawing);
paintCanvas.addEventListener('touchcancel', stopDrawing);
const copyPublicKeyButton = document.getElementById('copyPublicKeyButton');
const defaultLabelCopyPublicKeyButton = copyPublicKeyButton.innerHTML;
Expand Down

0 comments on commit 80aafc8

Please sign in to comment.