Merge branch 'develop'

This commit is contained in:
Insality 2020-05-19 23:54:39 +03:00
commit 5035dcbb18
3 changed files with 7 additions and 0 deletions

View File

@ -263,6 +263,7 @@ Create hover component with druid: `hover = druid:new_hover(node, callback)`
### Notes ### Notes
- By default, hover handles _hover event_ with pressed touch action_id. So it's mean, what mouse or touch have to be pressed - By default, hover handles _hover event_ with pressed touch action_id. So it's mean, what mouse or touch have to be pressed
- On desktop platforms there is _on_mouse_hover_ event. It's event on mouse hover without any action id - On desktop platforms there is _on_mouse_hover_ event. It's event on mouse hover without any action id
- By default, assume what node is on not hovered state (both _hover_ and _mouse_hover_)
## Swipe ## Swipe

View File

@ -91,3 +91,8 @@ Druid 0.4.0:
- **Fix:** Blocker component bug (blocker had very high priority, so it's block even button components, created after blocker) - **Fix:** Blocker component bug (blocker had very high priority, so it's block even button components, created after blocker)
- **Fix #58:** Bug, when druid instance should be always named `druid` (ex: `self.druid = druid.new(self)`) - **Fix #58:** Bug, when druid instance should be always named `druid` (ex: `self.druid = druid.new(self)`)
- **Fix #53:** Bug with final _Druid instance_ without any components - **Fix #53:** Bug with final _Druid instance_ without any components
Druid 0.5.0:
- **Fix #61:** Button component: fix button animation node creation
- **Fix #64:** Hover component: wrong mouse_hover default state

View File

@ -22,6 +22,7 @@ function M.init(self, node, on_hover_callback)
self.node = self:get_node(node) self.node = self:get_node(node)
self._is_hovered = false self._is_hovered = false
self._is_mouse_hovered = false
self.on_hover = Event(on_hover_callback) self.on_hover = Event(on_hover_callback)
self.on_mouse_hover = Event() self.on_mouse_hover = Event()