Specifies constants that define the effect of turning the mouse wheel in a CanvasComponent.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.MouseWheelBehaviors
Constants
The mouse wheel has no effect.
See Also
The mouse wheel scrolls the view.
Remarks
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.
See Also
Turning the mouse wheel or pinching on a touchpad changes the zoom factor.
Remarks
See Also
Static Methods
Converts the argument to MouseWheelBehaviors.
Parameters
A map of options to pass to the method.
- value - MouseWheelBehaviors
- The value to convert to MouseWheelBehaviors.
Returns
- ↪MouseWheelBehaviors
- Either
value
if it is already a MouseWheelBehaviors or an appropriate converted value.