draw selection rect only if mouse has moved

This commit is contained in:
2026-08-14 22:20:35 +02:00
parent d36e59fd26
commit 1cf7c264c1
5 changed files with 41 additions and 4 deletions

View File

@@ -55,6 +55,9 @@ struct WorldRenderFrame
const BuildModeController& buildMode;
const std::vector<ActiveBeam>& beams;
bool isBoxSelecting;
// Whether that box drag has passed the movement threshold that tells it apart
// from a click; until it has, the rectangle is not drawn (REQ-UI-MULTI-SELECT).
bool isBoxDragMoved;
QPoint boxStartTile;
QPoint boxCurrentTile;
bool isDebugDrawEnabled;