Pinch
Based on pinch
gesture( from Hammer.js), it also provides press
gesture to trigger the interaction of the tooltip.
How to use
Configuration options
Name | Type | Default | Description |
| String | 'x' | The direction of pinch, can be 'x', 'y' or 'xy'. The default value is 'x'. |
| Number | 1 or null | Set the minimum scale. Linear data default value is 1, cat or timeCat data default value is null. |
| Number | 4 or null | Set the maximum scale. Linear data default value is 4, cat or timeCat data default value is null. |
| Number | 9 | Minimal movement that is allowed while pressing. Press will trigger tooltip. |
| Number | 251 | Minimal press time in ms. |
| Function | null | The callback after the start event is triggered. |
| Function | null | The callback after the process event is triggered. |
| Function | null | The callback after the end event is triggered. |
Demo
Last updated