Skip to content

Commit

Permalink
npm run fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson committed Apr 3, 2024
1 parent 6750c54 commit a7f9b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/stencilMask/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ canvas.addEventListener('wheel', (e) => {
canvas.addEventListener('mousemove', (e) => {
const halfCanvasWidth = canvas.clientWidth / 2;
const quarterCanvasWidth = canvas.clientWidth / 4;
const halfCanvasHeight = canvas.clientHeight / 2
const halfCanvasHeight = canvas.clientHeight / 2;
const quarterCanvasHeight = canvas.clientHeight / 4;

const halfCanvasHeight = canvas.clientHeight / 2;
settings.offsetX = (e.clientX - 3 * quarterCanvasWidth) / halfCanvasWidth
settings.offsetX = (e.clientX - 3 * quarterCanvasWidth) / halfCanvasWidth;
settings.offsetY = (e.clientY - 3 * quarterCanvasHeight) / halfCanvasHeight;
});

Expand Down

0 comments on commit a7f9b26

Please sign in to comment.