Skip to content

Commit

Permalink
Update 2d.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinten authored Aug 11, 2024
1 parent 8518b13 commit c1f0c5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/canvas/2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let {on, off, once, emit, last} = events();
let canvas = document.createElement('canvas');
let ctx = canvas.getContext('2d');
document.body.appendChild(canvas);
canvas.addEventListener('touchstart', e => e.preventDefault());

let resize = e => {
let { vw, vh, vc } = e;
Expand Down

0 comments on commit c1f0c5a

Please sign in to comment.