improve panel/on_clicked
This commit is contained in:
@@ -65,11 +65,10 @@ function panel:init(name, bounds)
|
|||||||
local p = v:last()
|
local p = v:last()
|
||||||
while p do
|
while p do
|
||||||
if p:option('selectable') and p:bounds():contains(x, y) then
|
if p:option('selectable') and p:bounds():contains(x, y) then
|
||||||
v:select(p)
|
|
||||||
if p:option("mouseable") then
|
if p:option("mouseable") then
|
||||||
p:action_on(action.ac_on_clicked, x, y)
|
v:select(p)
|
||||||
|
return p:action_on(action.ac_on_clicked, x, y)
|
||||||
end
|
end
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
p = v:prev(p)
|
p = v:prev(p)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user