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

End event does not fire #16

Open
alcjamgit opened this issue Nov 10, 2017 · 3 comments
Open

End event does not fire #16

alcjamgit opened this issue Nov 10, 2017 · 3 comments

Comments

@alcjamgit
Copy link

alcjamgit commented Nov 10, 2017

$('#toleranceRangeSlider').asRange();

$('#toleranceRangeSlider').on('asRange::change', function (e) {
//this works
});

$('#toleranceRangeSlider').on('asRange::end', function (e) {
//does not get called during mouse up
});

@WebElg
Copy link

WebElg commented Dec 26, 2017

Try $('.asRange-pointer').on('asRange::moveEnd', function(e) {
});
It worked for me

@geraldjtorres
Copy link

Hi @WebElg moveEnd doesn't seem to work for me. Was there any other configurations I should add that i'm missing. I can't trigger the event to log out a simple console log.

My code snippet:

$('.input-range').on('asRange::moveEnd', function (e) { console.log('test'); });

@anastasiya-solodkaya
Copy link

Ok, finally here is detailed workaround:

  1. find 'asRange' structure next to your original element
  2. find 'asRange-pointer' inside it
  3. listen to "asRange::moveEnd" (see @WebElg comment) to execute 'onEnd' actions.
$('.your-original-input').next().find(".asRange-pointer").on("asRange::moveEnd", function () {
            // do whatever you want to do here
});

It seems that code never fires documented end event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants