diff --git a/druid/base/component.template.lua b/druid/base/component.template.lua index 3a72b7d..4637ca1 100644 --- a/druid/base/component.template.lua +++ b/druid/base/component.template.lua @@ -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 diff --git a/druid/base/drag.lua b/druid/base/drag.lua index 2c7e9a8..a48f28c 100644 --- a/druid/base/drag.lua +++ b/druid/base/drag.lua @@ -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 diff --git a/druid/base/hover.lua b/druid/base/hover.lua index aabc0b3..4fe3c33 100644 --- a/druid/base/hover.lua +++ b/druid/base/hover.lua @@ -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 diff --git a/druid/base/swipe.lua b/druid/base/swipe.lua index 4845216..5b39cf4 100644 --- a/druid/base/swipe.lua +++ b/druid/base/swipe.lua @@ -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