1
0
This commit is contained in:
MarcEricMartel 2023-11-19 12:15:42 -05:00
parent b31e2049bd
commit 7ceea9df71

View File

@ -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;