Solve #216 Button also can be pressed via multitouch action_id (not still simultaneously but can capture the event)

This commit is contained in:
Insality 2022-12-03 16:41:28 +02:00
parent a983d5e72a
commit 5accec45c3

View File

@ -61,7 +61,7 @@ local Button = component.create("button")
local function is_input_match(self, action_id)
if action_id == const.ACTION_TOUCH then
if action_id == const.ACTION_TOUCH or action_id == const.ACTION_MULTITOUCH then
return true
end