#72 fix return in on_input functions

This commit is contained in:
Insality 2020-06-14 13:34:30 +03:00
parent e8b1809321
commit 409657c12b
4 changed files with 4 additions and 3 deletions

View File

@ -16,6 +16,7 @@ end
-- Call only if exist interest: const.ON_INPUT or const.ON_INPUT_HIGH
function M.on_input(self, action_id, action)
return false
end

View File

@ -172,7 +172,7 @@ end
function M.on_input(self, action_id, action)
if action_id ~= const.ACTION_TOUCH and action_id ~= const.ACTION_MULTITOUCH then
return
return false
end
if not helper.is_enabled(self.node) then

View File

@ -33,7 +33,7 @@ end
function M.on_input(self, action_id, action)
if action_id ~= const.ACTION_TOUCH and action_id ~= nil then
return
return false
end
if not action_id and helper.is_mobile() then

View File

@ -95,7 +95,7 @@ end
function M.on_input(self, action_id, action)
if action_id ~= const.ACTION_TOUCH then
return
return false
end
if not helper.is_enabled(self.node) then