Skip to main content

PanInputOption

The option object of the eg.Axes.PanInput module.

Type: Object

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
inputTypeArray<String>✔️["touch", "mouse", "pointer"]Types of input devices
- touch: Touch screen
- mouse: Mouse
- pointer: Mouse and touch
inputButtonArray<String>✔️["left"]List of buttons to allow input
- left: Left mouse button and normal touch
- middle: Mouse wheel press
- right: Right mouse button
scaleArray<Number>✔️Coordinate scale that a user can move
scale[0]Number✔️1horizontal axis scale
scale[1]Number✔️1vertical axis scale
thresholdAngleNumber✔️45The threshold value that determines whether user action is horizontal or vertical (0~90)
thresholdNumber✔️0Minimal pan distance required before recognizing
preventClickOnDragBoolean✔️falseWhether to cancel the click event when the user finishes dragging more than 1 pixel
iOSEdgeSwipeThresholdNumber✔️30Area (px) that can go to the next page when swiping the right edge in iOS safari
touchActionString✔️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.