Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update recognizer-pan.md #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions recognizer-pan.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ title: Pan recognizer
# Hammer.Pan(options)
Recognized when the pointer is down and moved in the allowed direction.

| Option | Default | Description |
| -----------|----------|-------------------|
| event | pan | Name of the event. |
| pointers | 1 | Required pointers. 0 for all pointers. |
| threshold | 10 | Minimal pan distance required before recognizing. |
| direction | DIRECTION_ALL | Direction of the panning. |
| Option | Default | Description |
|--------------|-----------------|-------------------|
| `event` | `'pan'` | Name of the event. |
| `pointers` | `1` | Required pointers. Use `0` for all pointers. |
| `threshold` | `10` | Minimal pan distance required before recognizing. |
| `direction` | `DIRECTION_ALL` | Direction of the panning. |

## Events
- pan, together with all of below
- panstart
- panmove
- panend
- pancancel
- panleft
- panright
- panup
- pandown
- `pan`, together with all of below
- `panstart`
- `panmove`
- `panend`
- `pancancel`
- `panleft`
- `panright`
- `panup `
- `pandown`

## Notes
When calling `Hammer()` to create a simple instance, the pan and swipe recognizers are configured to only detect horizontal gestures.