This repository has been archived by the owner on May 30, 2024. It is now read-only.
onSlideEnd not fired when using keyboard #362
-
focus and controlling with arrow keys works. The onSlide callback function is fired every time the arrow key ist used. But the onSlideEnd is not fired when an arrow key is used - only when working with the mouse. But onSlide is not really useful when working with a mouse - he fires hundreds of times when the handle is moved. Is there a possibility to bind some action on onSlideEnd for mouse and arrow keys? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
andreruffert
Feb 19, 2021
Replies: 1 comment
-
I'd suggest using the const $element = $('input[type="range"]');
$element
.rangeslider({
polyfill: false
})
.on('input', function(e) {
// do your thing...
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andreruffert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd suggest using the
input
orchange
event instead of the callback functions. e.g.