diff --git a/src/instruments/blobMask.ts b/src/instruments/blobMask.ts index ff696f1c3a167f59b88a9643f8bdd07ed618a4ba..7d66c2114d1fe1756eeebc97df08022adc8ec19f 100644 --- a/src/instruments/blobMask.ts +++ b/src/instruments/blobMask.ts @@ -111,6 +111,9 @@ export class BlobMask extends AbstractInstrument<PathCoords> implements Instrume if(!this.active) { return true; } + if(event.modifiers.control) { + return true; // On ne fait si CONTROL est pressé en dessinant + } this.addMousePoint(event.point); return true; } @@ -119,12 +122,12 @@ export class BlobMask extends AbstractInstrument<PathCoords> implements Instrume * Déplacement de la souris */ private onMouseDrag(event : paper.MouseEvent) : boolean { - if(event.modifiers) { - - } if(!this.active) { return true; } + if(event.modifiers.control) { + return true; // On ne fait si CONTROL est pressé en dessinant + } this.addMousePoint(event.point); return true; }