Skip to content

Commit

Permalink
Updated hooks description
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Oct 18, 2023
1 parent b0202a0 commit c45baf3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/hooks/use-interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Use adaptive interaction flow.
*
* Desktop:
* --[ mouse enter (activate) ] --> [ click (use) ] --> [ mouse leave (disactivate) ]
* * [ mouse enter = hover ] --> [ click = use ] --> [ mouse leave = unhover ]
*
* Mobile:
* --[ click (activate) ] --> [ second click (use) ] --> [ auto disactivate ]
* --[ click (activate) ] --> [ outside click (disactivate) ]
* * [ click = hover ] --> [ second click = use ] --> [ auto unhover ]
* * [ click = hover ] --> [ outside click = unhover ]
*
* @param ref - Target ref
* @param callback - Event callback
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "phaser-react-ui",
"description": "React interface render for Phaser engine",
"version": "1.12.0",
"version": "1.12.1",
"keywords": [
"phaser",
"interface",
Expand Down
6 changes: 3 additions & 3 deletions src/hooks/use-interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { useClickOutside } from './use-click-outside';
* Use adaptive interaction flow.
*
* Desktop:
* --[ mouse enter (activate) ] --> [ click (use) ] --> [ mouse leave (disactivate) ]
* * [ mouse enter = hover ] --> [ click = use ] --> [ mouse leave = unhover ]
*
* Mobile:
* --[ click (activate) ] --> [ second click (use) ] --> [ auto disactivate ]
* --[ click (activate) ] --> [ outside click (disactivate) ]
* * [ click = hover ] --> [ second click = use ] --> [ auto unhover ]
* * [ click = hover ] --> [ outside click = unhover ]
*
* @param ref - Target ref
* @param callback - Event callback
Expand Down

0 comments on commit c45baf3

Please sign in to comment.