Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed May 19, 2020
2 parents 1c1659a + 8231e30 commit 5035dcb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs_md/01-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ Create hover component with druid: `hover = druid:new_hover(node, callback)`
### Notes
- 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
- By default, assume what node is on not hovered state (both _hover_ and _mouse_hover_)


## Swipe
Expand Down
5 changes: 5 additions & 0 deletions docs_md/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 #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


Druid 0.5.0:
- **Fix #61:** Button component: fix button animation node creation
- **Fix #64:** Hover component: wrong mouse_hover default state
1 change: 1 addition & 0 deletions druid/base/hover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function M.init(self, node, on_hover_callback)
self.node = self:get_node(node)

self._is_hovered = false
self._is_mouse_hovered = false

self.on_hover = Event(on_hover_callback)
self.on_mouse_hover = Event()
Expand Down

0 comments on commit 5035dcb

Please sign in to comment.