aboutsummaryrefslogtreecommitdiff
path: root/settings.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-10 12:52:04 -0700
committer1029chris <1029chris@gmail.com>2016-04-10 12:52:04 -0700
commit078d3076a138f379e56d555c4927623eeee7b5f1 (patch)
tree100ea34b4679a449203d2300045bd1a9186db7da /settings.lua
parentf56dd94334559d026922cd1ef81e1a6a506d239a (diff)
Fixed settings menu glitch
it would change the background while dragging the window around.
Diffstat (limited to 'settings.lua')
-rw-r--r--settings.lua2
1 files changed, 1 insertions, 1 deletions
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