mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Remove match_event from druid, add hover component
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user