Skip to content

Commit

Permalink
reintroduce zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Mar 26, 2024
1 parent 8ffcd47 commit 421c945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ canvas.addEventListener('dragover', function(e) {
e.preventDefault();
});

// canvas.addEventListener('wheel', function(e) {
// var delta = Math.sign(e.deltaY);
// zoom(delta);
// });
canvas.addEventListener('wheel', function(e) {
var delta = Math.sign(e.deltaY);
zoom(delta);
});

document.querySelector('#saveImage').addEventListener('click', function(e) {
e.preventDefault();
Expand Down

0 comments on commit 421c945

Please sign in to comment.