E

MouseWheelBehaviors
flags

Specifies constants that define the effect of turning the mouse wheel in a CanvasComponent.

Remarks

If ZOOM and SCROLL are both set, scrolling will be the default behavior. The control will zoom with the Control key is pressed. ZOOM and SCROLL can be combined with ONLY_WHEN_FOCUSED to activate this behavior only when the control has focus.

Members

No filters for this type

Constants

The mouse wheel has no effect.
Can be combined with ZOOM or SCROLL to perform the action only when the control has focus.
The mouse wheel scrolls the view.

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 scrolling will be the default behavior. The control will zoom if the Control key is pressed. On touchpads, this combination enables bidirectional panning with two fingers and pinch zooming.

static

See Also

Developer's Guide
Turning the mouse wheel or pinching on a touchpad changes the zoom factor.
This constant can be combined with SCROLL to allow both at the same time with different modifiers. In that case scrolling will be the default behavior. The control will zoom if the Control key is pressed. On touchpads, this combination enables bidirectional panning with two fingers and pinch zooming.
static

See Also

Developer's Guide

Static Methods

Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: MouseWheelBehaviors
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.
static

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.