I have already styled and implemented jQuery UI slider into a project. While it is mobile and scales properly, it does not allow tap and drag. Instead you have to touch where you want the slider to go. jQuery mobile UI supports this, but I have time invested into what is already there.
The functionality we want:
Here
What we are using: Here
On a desktop you can't tell the difference. On a mobile device it is apparent.
Anyone know how to add this support to jquery UI?
$("#cameraSlider").slider({
value: 2,
min: 1,
max: 3,
step: 1,
slide: function(event, ui) {
cameramen = ui.value;
return calcTotal();
}
});
Thanks, Seth
jQuery ui doesn't have touch support. You should use it with jQuery-ui touch punch.
Just add the script after jQuery ui:
You can also use cdnjs:
Note: Better give this repo a star on Github.
You can just link this js.
thanks.