Remarks
If ZOOM and SCROLL are both set, zooming will be the default behavior. The control will pan vertically if the Ctrl key (or Command key on macOS) is pressed and horizontally if the Shift key is pressed.
To prevent this behavior when the CanvasComponent is unfocused, set CanvasComponent.preventViewportInteraction to PreventViewportInteractionPolicy.UNFOCUSED.
See Also
Members
Constants
Scrolling defaults to scrolling vertically. Pressing Shift while scrolling will scroll horizontally instead. No modifier key is required if bidirectional wheel events are available (e.g., touchpad or two-axis mouse wheel).
This constant can be combined with ZOOM to allow both at the same time with different modifiers. In that case zooming will be the default behavior when the mouse wheel is turned without a pressed modifier. The control will pan vertically if the Ctrl (or Command on macOS) key is pressed and horizontally if the Shift key is pressed. On touchpads, this combination enables bidirectional panning with two fingers and pinch zooming.
See Also
Developer's Guide
Ctrl (or Command on macOS) key is pressed and horizontally if the Shift key is pressed. On touchpads, this combination enables bidirectional panning with two fingers and pinch zooming.See Also
Developer's Guide
Static Methods
Converts the given argument to an enum constant of this enum type.
Parameters
- value: MouseWheelBehaviorsconversion
- The value to convert to an enum constant.
Return Value
- MouseWheelBehaviors
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
- value: MouseWheelBehaviors
- The numeric value of an enum constant.
Return Value
- string
- The name of the enum constant.
Throws
- Exception ({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.