Quantcast

Stop restricting repositioning only when the cursor moves. That causes issues with clamping.

Scott Sibley [07-04-11 - 08:05]
Stop restricting repositioning only when the cursor moves. That causes issues with clamping.
Filename
Modules/Position/Position.lua
diff --git a/Modules/Position/Position.lua b/Modules/Position/Position.lua
index 2ec28ac..f6f9134 100644
--- a/Modules/Position/Position.lua
+++ b/Modules/Position/Position.lua
@@ -398,11 +398,8 @@ local positionTooltip = function()

 end

-local oldX, oldY
 local positionMainTooltip = function()
 	local x, y = GetCursorPosition()
-	if oldX == x and oldY == y then return end
-	oldX, oldY = x, y

 	local index = getIndex(UIParent)
 	local currentAnchor = StarTip.opposites[StarTip.anchors[index]:sub(8)]