Jeffrey Espiritu

Results 12 comments of Jeffrey Espiritu

Right now, this isn't possible for range sliders, although it is possible for a single slider. You would have to create two sliders to handle this. See: https://jsfiddle.net/jespiritu/mp9bvy3d/4/

> I came here for this problem too: seems that it's not solved and I have to use `$('.slider').slider('setAttribute', 'value', [0,200]);` to make it work > Is it right? >...

@kmkroski I'm in the process of refactoring the touch support code which you can find here: https://github.com/seiyria/bootstrap-slider/pull/899 I still need to do more testing and write a bunch of unit...

I had that problem too. I can't remember how I fixed it. Try moving the sliders on this page (it should work fine): https://jespirit.github.io/bootstrap-slider/#example-3

@ViceIce You're right. It's not possible to change the `ticks[]` nor the tick labels on a refresh. Workaround: > I currently simply destroy and recreate the slider as a workaround....

When you change the type of the handle, you need to call `.slider('refresh')` to update the CSS classes for the handles. **Note:** The JSFiddle works but it's buggy. Source code...

The `ticks[]` have to be set properly Before: `[0, 1 2, 3]` After: `[0, 300, 500, 1000]` See: https://jsfiddle.net/nqfvya47/1/ You also need to include Bootstrap CSS file as well to...

I made changes to the JSFiddle so that the handler wouldn't go out of bounds. https://jsfiddle.net/b5rhx9go/1/ ```css .slider.slider-horizontal { width: 210px; height: 53px; /* changed */ } .slider.slider-horizontal .slider-track {...

See this link about passive listeners and `preventDefault()`: [addEventListener Parameters](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters) >`passive:` A `Boolean` which, if `true`, indicates that the function specified by listener will never call `preventDefault()`. If a passive...