Class MouseWheelAnimation
Inheritance
MouseWheelAnimation
Assembly: Mapsui.dll
Syntax
public class MouseWheelAnimation
Properties
|
Edit this page
View Source
ContinuousMouseWheelZoomStepSize
The zoom step applied per wheel event when UseContinuousMouseWheelZoom is true.
The value is an exponent in base-2: a step of 0.1 scales the resolution by 2^0.1 ≈ 1.07 (7%).
A step of 1.0 would halve or double the resolution in a single event. Default is 0.1.
Declaration
public double ContinuousMouseWheelZoomStepSize { get; set; }
Property Value
|
Edit this page
View Source
Duration
Declaration
public int Duration { get; set; }
Property Value
|
Edit this page
View Source
Easing
Declaration
public Easing Easing { get; set; }
Property Value
|
Edit this page
View Source
UseContinuousMouseWheelZoom
When true, each mouse wheel event zooms by a small continuous step instead of snapping
to the next predefined resolution level. This gives a smoother feel, especially on
platforms where the mouse wheel fires many events (e.g. trackpad pinch on a laptop).
Declaration
public bool UseContinuousMouseWheelZoom { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetResolution(int, double, MMinMax?, IReadOnlyList<double>)
Declaration
public double GetResolution(int mouseWheelDelta, double currentResolution, MMinMax? zoomBounds, IReadOnlyList<double> resolutions)
Parameters
Returns
Extension Methods