Remove match_event from druid, add hover component

This commit is contained in:
Insality
2020-02-22 15:09:29 +03:00
parent 0dd37a03cd
commit 3e30fd4417
5 changed files with 109 additions and 21 deletions

View File

@@ -10,11 +10,14 @@ local M = component.create("blocker", { const.ON_SWIPE })
function M.init(self, node)
self.node = self:get_node(node)
self.event = const.ACTION_TOUCH
end
function M.on_input(self, action_id, action)
if action_id ~= const.ACTION_TOUCH then
return false
end
if not helper.is_enabled(self.node) then
return false
end