weirdly try to make dragtoselect rectangle bigger at low zoom

This commit is contained in:
2025-12-16 15:53:54 -06:00
parent 5d491cc1de
commit 2928422b28

View File

@@ -161,7 +161,11 @@ class DragToSelectPlugin extends FlxBasic {
}
}
} else if (!rect.isEmpty) {
dragState.debugLayer.drawFlxRect(rect, boxColor);
var thickness = 1.0;
if (dragState.debugLayer.camera.zoom < 1.0) {
thickness = Math.ceil(0.5 / dragState.debugLayer.camera.zoom);
}
dragState.debugLayer.drawFlxRect(rect, boxColor, thickness);
}
}
}