Erratas.
This commit is contained in:
parent
b31e2049bd
commit
7ceea9df71
@ -106,8 +106,10 @@ public class CanvasService {
|
||||
CanvasCommand command = new();
|
||||
|
||||
// Magnétisme boboche si activé, centrage si pas activé.
|
||||
mouseX = eventArgs.OffsetX - (!snap? pointSize / 2: mouseX % pointSize);
|
||||
mouseY = eventArgs.OffsetY - (!snap? pointSize / 2: mouseY % pointSize);
|
||||
mouseX = eventArgs.OffsetX;
|
||||
mouseX -= (!snap? pointSize / 2: mouseX % pointSize);
|
||||
mouseY = eventArgs.OffsetY;
|
||||
mouseY -= (!snap? pointSize / 2: mouseY % pointSize);
|
||||
|
||||
if (eventArgs.Buttons == 1) // Couleur si bouton gauche, blanc si bouton droit
|
||||
color = currentColor;
|
||||
|
Loading…
Reference in New Issue
Block a user