Search Results for

    Show / Hide Table of Contents

    Class MouseWheelAnimation

    Inheritance
    object
    MouseWheelAnimation
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Animations
    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
    Type Description
    double
    | Edit this page View Source

    Duration

    Declaration
    public int Duration { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Easing

    Declaration
    public Easing Easing { get; set; }
    Property Value
    Type Description
    Easing
    | 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
    Type Description
    bool

    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
    Type Name Description
    int mouseWheelDelta
    double currentResolution
    MMinMax zoomBounds
    IReadOnlyList<double> resolutions
    Returns
    Type Description
    double

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX