survivors: dont limit the movement area of the control to make it more useful

This commit is contained in:
Sheldan
2025-09-08 22:58:18 +02:00
parent 27f3d2e916
commit a8be84ebd3

View File

@@ -88,7 +88,7 @@ export class Controls implements DrawContainer, MouseInterActingContainer {
mouseMove(pos: Vector) {
if(this.isPressed()) {
let diff = Vector.createVector(pos, this.centerPosition!);
if(diff.vecLength() > this.size && !isNaN(diff.x) && !isNaN(diff.y)) {
if(!isNaN(diff.x) && !isNaN(diff.y)) {
return;
}
diff = diff.normalize();