Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Ticks with Range Slider do not snap #152

@bigevilbrain

Description

@bigevilbrain

https://codepen.io/anon/pen/XgPqdJ

Ticks function correctly when range is false or value is singular.

<input id="slider1" type="text"
    data-slider-min="0.0"
    data-slider-max="400.0"
    data-slider-ticks="[0, 100, 200, 300, 400]"
    data-slider-ticks-snap-bounds="30"
    data-slider-range="false"
/>

Slider does not snap to ticks when range is true or value is an array.

<input id="slider2" type="text"
    data-slider-min="0.0"
    data-slider-max="400.0"
    data-slider-ticks="[0, 100, 200, 300, 400]"
    data-slider-ticks-snap-bounds="30"
    data-slider-range="true"
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions