core/menusystem: add a break after the first active menu have got a clic

This commit is contained in:
Kazhnuz 2019-02-28 21:34:24 +01:00
parent 8b436c9bda
commit a2f15bf14e
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ function MenuSystem:mousemoved(x, y, dx, dy)
if v.isActive then
if (x > v.x) and (x < v.x + v.w) and (y > v.y) and (y < v.y + v.h) then
v:mousemoved(x - v.x, y - v.y)
break;
end
end
end
@ -86,6 +87,7 @@ function MenuSystem:mousepressed( x, y, button, istouch )
if v.isActive then
if (x > v.x) and (x < v.x + v.w) and (y > v.y) and (y < v.y + v.h) then
v:mousepressed(x - v.x, y - v.y, button, istouch )
break;
end
end
end