andreruffert/rangeslider.js

Using mousedown and mouseup on slider

albertoscandolara opened this issue · 1 comments

Hi André ,
your bar is really great!

I'm tryng to intercept some events on your slidebar, but i manage only with the click event. I would need most of all the mousedown and the mouseup events.
The jquery code i use to try this is really simple:

// this fires
$('.rangeSlider__handle').on('click', function () {
alert('rangeSlider__handle click');
});

// this doesn't
$('.rangeSlider__handle').on('mousedown', function () {
alert('rangeSlider__handle mousedown');
});

Is there something really basic that i'm missing or is it a wanted behaviour?

Thanks a lot in advance
Best regards,

Alberto

I am facing the same problem:

$('#js-rangeslider-0').on('mousedown', function () {
alert('rangeSlider__handle mousedown');
});

doesn't fire.

Why?