Optimize List click handler
This commit is contained in:
parent
1b3cbfa2e8
commit
0e1c5a4fbb
@ -132,6 +132,11 @@ function List:handleEvent(evt)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if Event.isClickEvent(evt) then
|
if Event.isClickEvent(evt) then
|
||||||
|
-- If click is not inside list bounds, we can safely ignore it
|
||||||
|
if not Event.containsClick(self, evt, 0, 0) then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
local wOffset = 0
|
local wOffset = 0
|
||||||
local hOffset = 0
|
local hOffset = 0
|
||||||
for _,child in ipairs(self.children) do
|
for _,child in ipairs(self.children) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user