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

Ticks with Range Slider do not snap #152

Open
bigevilbrain opened this issue Jul 7, 2017 · 1 comment
Open

Ticks with Range Slider do not snap #152

bigevilbrain opened this issue Jul 7, 2017 · 1 comment

Comments

@bigevilbrain
Copy link

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"
/>
@seiyria
Copy link
Owner

seiyria commented Jul 7, 2017

You're welcome to submit a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants