PanInputOption
The option object of the eg.Axes.PanInput module.
Type: Object
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
inputType | Array<String> | ✔️ | ["touch", "mouse", "pointer"] | Types of input devices - touch: Touch screen - mouse: Mouse - pointer: Mouse and touch |
inputKey | Array<String> | ✔️ | ["any"] | List of key combinations to allow input - any: any key - shift: shift key - ctrl: ctrl key and pinch gesture on the trackpad - alt: alt key - meta: meta key - none: none of these keys are pressed |
inputButton | Array<String> | ✔️ | ["left"] | List of buttons to allow input - left: Left mouse button and normal touch - middle: Mouse wheel press - right: Right mouse button |
scale | Array<Number> | ✔️ | Coordinate scale that a user can move | |
scale[0] | Number | ✔️ | 1 | horizontal axis scale |
scale[1] | Number | ✔️ | 1 | vertical axis scale |
thresholdAngle | Number | ✔️ | 45 | The threshold value that determines whether user action is horizontal or vertical (0~90) |
threshold | Number | ✔️ | 0 | Minimal pan distance required before recognizing |
preventClickOnDrag | Boolean | ✔️ | false | Whether to cancel the click event when the user finishes dragging more than 1 pixel |
preventDefaultOnDrag | Boolean | ✔️ | false | Whether to use the preventDefault when the user starts dragging |
iOSEdgeSwipeThreshold | Number | ✔️ | 30 | Area (px) that can go to the next page when swiping the right edge in iOS safari |
touchAction | String | ✔️ | [object Object] | Value that overrides the element's "touch-action" css property. If set to null, it is automatically set to prevent scrolling in the direction of the connected axis. |