improve editing

This commit is contained in:
haven1433
2022-09-22 21:05:20 -05:00
parent d537f88c46
commit 2eaa1f6b6e

View File

@@ -382,11 +382,12 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
Point drawSource;
private void DrawDown(double x, double y, int clickCount) {
interactionType = PrimaryInteractionType.Draw;
var map = MapUnderCursor(x, y);
if (clickCount == 2) {
var map = MapUnderCursor(x, y);
if (map != null) map.PaintBlock(history.CurrentChange, drawBlockIndex, collisionIndex, x, y);
Hover(x, y);
} else {
PrimaryMap = map;
drawSource = ToTilePosition(x, y);
DrawMove(x, y);
}