Better on end touch events

This commit is contained in:
Insality
2021-02-07 13:14:30 +05:00
parent 7ac6c9b02b
commit 8a173305de
2 changed files with 6 additions and 4 deletions

View File

@@ -71,8 +71,10 @@ local function end_touch(self)
end
self.is_drag = false
self.is_touch = false
self.on_touch_end:trigger(self:get_context())
if self.is_touch then
self.is_touch = false
self.on_touch_end:trigger(self:get_context())
end
self:reset_input_priority()
self.touch_id = 0
end