From 078d3076a138f379e56d555c4927623eeee7b5f1 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Sun, 10 Apr 2016 12:52:04 -0700 Subject: Fixed settings menu glitch it would change the background while dragging the window around. --- settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings.lua') diff --git a/settings.lua b/settings.lua index 3633198..84727f3 100644 --- a/settings.lua +++ b/settings.lua @@ -50,7 +50,7 @@ function drawBgSel(i) end function updateSettings() for i=1,6 do - if (layer[1] == 6 and win[6].hover == true and sys.mouse.p.p == true and + if (layer[1] == 6 and win[6].hover == true and sys.mouse.p.p == true and sys.mouse.drag == false and sys.mouse.p.x >= win[6].x+263 and sys.mouse.p.x <= win[6].x+263+120 and sys.mouse.p.y >= win[6].y+70+(20*(i-1)) and sys.mouse.y <= win[6].y+70+(20*(i-1))+20) then for i=1,6 do -- cgit