diff --git a/src/touch/MovementInputEdit.hx b/src/touch/MovementInputEdit.hx index d13d431e..240089ad 100644 --- a/src/touch/MovementInputEdit.hx +++ b/src/touch/MovementInputEdit.hx @@ -81,7 +81,7 @@ class MovementInputEdit extends GuiGraphics { var knobPos = new Vector(renderRect.position.x + renderRect.extent.x / 2, renderRect.position.y + 15); - var newSize = Util.clamp(Math.abs(mouseState.position.y - (renderRect.position.y + renderRect.extent.y / 2)) / 3, 30, + var newSize = Util.clamp(Math.abs(mouseState.position.y - (renderRect.position.y + renderRect.extent.y / 2)) / 3, 15, 70); // Full size is size * 6 var newPos = new Vector(knobPos.x - newSize * 3, mouseState.position.y); diff --git a/src/touch/TouchEditButton.hx b/src/touch/TouchEditButton.hx index 1382d4b9..400551a5 100644 --- a/src/touch/TouchEditButton.hx +++ b/src/touch/TouchEditButton.hx @@ -80,7 +80,7 @@ class TouchEditButton extends GuiGraphics { if (state == 1) { var renderRect = getHitTestRect(); - var newRadius = Util.clamp(mouseState.position.sub(renderRect.position.add(renderRect.extent.multiply(0.5))).length(), 30, 80); + var newRadius = Util.clamp(mouseState.position.sub(renderRect.position.add(renderRect.extent.multiply(0.5))).length(), 15, 80); this.radius = newRadius; this.extent = new Vector(2 * newRadius, 2 * newRadius);