A
A
Alexander Ivanov2018-07-07 20:07:28
JavaScript
Alexander Ivanov, 2018-07-07 20:07:28

Why is the slider in io.range + owl.slider reacting through time?

https://codepen.io/anon/pen/BVXRxN?editors=1010
How can I fix the situation above?
PS
These guys from OWL are constantly changing something and old scripts fall off...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2018-07-07
@cimonlebedev

Went from another corner

$("#slider").slider({
            value : startPos,
            min : 0,
            max : maxPos-2,
            step : 1,
            create: function( event, ui ) {
                val = $( "#slider" ).slider("value");
                $( "#contentSlider" ).html( val );
            },
            slide: function( event, ui ) {
        $( "#contentSlider" ).html( ui.value );
                $('.area-range').trigger('to.owl.carousel', [ui.value, 300]);
            }
        });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question