Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use steps but having a fluid drag #627

Closed
danieljuhl opened this issue Mar 23, 2016 · 16 comments
Closed

Use steps but having a fluid drag #627

danieljuhl opened this issue Mar 23, 2016 · 16 comments
Labels
Feature Feature requests/suggestions

Comments

@danieljuhl
Copy link

I was wondering if it is possible to have step values/ranges of step values, but still have a fluid drag experience. What I would like to accomplish is that the drag is fluid, and that the handle can be placed anywhere (no snapping), but only emits an event with the updated value, when the value changes (based on the ranges and steps).

As far as I can see, this feature is not in the library at the moment. Right?

@leongersen
Copy link
Owner

So basically, you want to 'round' the slider output to the nearest step?

@danieljuhl
Copy link
Author

Yes, right now, the slider is visually snapping to the steps, but I would like it to move fluid between the steps in the ranges, but only output the nearest step.

@leongersen
Copy link
Owner

Are your steps linear?

@danieljuhl
Copy link
Author

No... I have a sample here:

range: {
  'min': [0, 2],
  '35%': [10, 5],
  '50%': [25, 5],
  '75%': [50, 10],
  'max': [100]
}

@cesarve77

This comment was marked as off-topic.

@danieljuhl

This comment was marked as outdated.

@danieljuhl
Copy link
Author

@leongersen are you willing to accept a PR if I give it a shot?

@leongersen
Copy link
Owner

Absolutely. I think you basically want to feed valueGet through toStepping. Shouldn't be too hard. What API would you propose?

@leongersen leongersen added the Feature Feature requests/suggestions label Apr 16, 2016
@sjelfull
Copy link

sjelfull commented Jul 7, 2016

If I understand your request correctly, @leongersen, I was about to ask for the same.

Look at example here: http://jmp.sh/nDH5TIE

You notice that there is an abrupt snapping between the points. I think it would be more user-friendly if it was moving smoothly between the steps, and snapping to the nearest point only if you let go. As it is now, if you want steps, it can't.

Heres another example: http://jmp.sh/cWQbhQx

@rmbaumer
Copy link

rmbaumer commented Aug 3, 2016

I'm looking for this functionality as well. Any update on this?

@rejas
Copy link

rejas commented Oct 25, 2016

I'm currently wishing for the opposite issue (which was mentioned in #623 and is merged into this). So anyone working on this orwhats the common status?

@phpanos
Copy link

phpanos commented Dec 6, 2016

I'm also looking for this feature. Any workaround as of this point?

@heilwood
Copy link

is it any update on this feature?

@leongersen
Copy link
Owner

I've just added this in noUiSlider 15.6.0. There is a new smooth-steps behaviour flag, which implements this feature.

@prabathgamage
Copy link

What is the version of Jquery, which the current version of nouislider compatible with?

@github-actions
Copy link

github-actions bot commented Jul 3, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Feature requests/suggestions
Projects
None yet
Development

No branches or pull requests

9 participants