From 86c7f47b48d1b90e3bbfa78f406b33b4fb7ecad2 Mon Sep 17 00:00:00 2001 From: Nightcycle <77173389+nightcycle@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:17:34 -0500 Subject: [PATCH] fixed linting issue --- src/Util/PopUp/init.luau | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Util/PopUp/init.luau b/src/Util/PopUp/init.luau index 22491fb9..a994d3f3 100644 --- a/src/Util/PopUp/init.luau +++ b/src/Util/PopUp/init.luau @@ -66,16 +66,16 @@ function Util.ColdFusion.new( local viewportSize = workspace.CurrentCamera.ViewportSize local absSize = out.AbsoluteSize local goalPos = goalAbsolutePositionState:Get() - local anchorPoint = anchorPointState:Get() + local aPoint = anchorPointState:Get() local x = math.clamp( goalPos.X, - absSize.X * (anchorPoint.X), - viewportSize.X - absSize.X * (1-anchorPoint.X) + absSize.X * (aPoint.X), + viewportSize.X - absSize.X * (1-aPoint.X) ) local y = math.clamp( goalPos.Y, - absSize.Y * (anchorPoint.Y), - viewportSize.Y - absSize.Y * (1-anchorPoint.Y) + absSize.Y * (aPoint.Y), + viewportSize.Y - absSize.Y * (1-aPoint.Y) ) finalPositionState:Set(Vector2.new(x,y)) end))