From 221dcef005d0d201b16522ee021753e3d3259d96 Mon Sep 17 00:00:00 2001 From: Zearin Date: Tue, 25 Apr 2017 09:43:46 -0400 Subject: [PATCH] Update recognizer-pan.md Minor formatting tweaks --- recognizer-pan.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/recognizer-pan.md b/recognizer-pan.md index 601b179..e52ff08 100644 --- a/recognizer-pan.md +++ b/recognizer-pan.md @@ -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.