Skip to content

Slide: step property seems to have no effect #372

@mg

Description

@mg

This is probably because of this:

  _updateWithChangeEvent: function(e, percent) {
    if (this.state.percent === percent) return;
    this.setPercent(percent);
    var value = this._percentToValue(percent);
    if (this.props.onChange) this.props.onChange(e, value);
  },

For instance, a slider with min=10, max=100, step=10 does not give me 10 .. 20 .. 30 .. .. 100 but e.g.

98.07142857142857
98.39285714285714
99.03571428571429
99.35714285714286
99.67857142857143

Is this as intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: sliderChanges related to the slider.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions