We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967072d commit e7c7e0fCopy full SHA for e7c7e0f
1 file changed
src/TSMapEditor/UI/CursorActions/PlaceTubeCursorAction.cs
@@ -241,14 +241,18 @@ public override void LeftClick(Point2D cellCoords)
241
points.Add(cellCoords);
242
RefreshTube();
243
TubeRefreshHelper.MapViewRefreshTube(tube, CursorActionTarget.MutationTarget);
244
- lastClickedCell = cellCoords;
245
- lastClickedCellDateTime = DateTime.Now;
246
}
247
else
248
{
249
if (points.Count > 1 && lastClickedCell == cellCoords && DateTime.Now - lastClickedCellDateTime < TimeSpan.FromSeconds(DoubleClickTime))
+ {
250
ConfirmTube();
+ return;
251
+ }
252
253
+
254
+ lastClickedCell = cellCoords;
255
+ lastClickedCellDateTime = DateTime.Now;
256
257
258
0 commit comments