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

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"
/>

Activity

  1. seiyria commented on Jul 7, 2017

    @seiyria
    Owner

    You're welcome to submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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