Skip to content

Commit

Permalink
prevent selecting color on pointerup
Browse files Browse the repository at this point in the history
only seems to affect firefox
  • Loading branch information
xi committed Nov 8, 2024
1 parent 63af5bf commit 0e2ccb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ canvas.addEventListener('wheel', event => {

registerPointerEvents(canvas, {
down(pointers) {
palette.inert = true;
if (pointers.length === 2) {
view.resetDraw();
pointersStartState = {
Expand Down Expand Up @@ -143,5 +144,6 @@ registerPointerEvents(canvas, {
view.render();
view.resetDraw();
}
palette.inert = false;
},
});

0 comments on commit 0e2ccb2

Please sign in to comment.