jquery-simple-slider icon indicating copy to clipboard operation
jquery-simple-slider copied to clipboard

Add touch support

Open mkoistinen opened this issue 12 years ago • 10 comments

Hi, I was getting impatient (read: pressure from my project), so I attempted to bring in the work @gregavola had done with touch-support. Unfortunately, I couldn't make it work, so I started afresh using an approach I've used in other projects before with success.

This time it seems to work well on iDevices. I don't have Android devices around, but I've heard that this works on them too.

At any rate, it works! I've also added some simple adjustments to the CSS for touch-devices—namely, made the knob larger so you can actually touch it. =)

mkoistinen avatar Mar 13 '13 19:03 mkoistinen

Hmmm, obviously, I'm not doing this correctly. The only commits you need for this is 7923dce, the others are already in the pull-request queue as I've sent them earlier.

mkoistinen avatar Mar 13 '13 19:03 mkoistinen

You had issues with my pull request? I use it right now without issues - perhaps its newer version of jQuery? I am using Zepto.

gregavola avatar Mar 13 '13 19:03 gregavola

I think it was more of an issue getting it to merge. I'm not the best with Git (yet!) and since your code hadn't been merged into the master yet, I had to add your repo as remote to my repor then try to merge that way. I probably flubbed something up along the way, but regardless, it didn't work for me and it seemed the code could be simpler anyway. Also, you didn't have any CoffeeScript. I normally use normal JS, but this repo is use CS and I wanted to keep it that way.

mkoistinen avatar Mar 13 '13 19:03 mkoistinen

Hi all. I'm using the code for the slider and have it working nicely in a test page. But I need to get it working on touch devices. I see you've successfully produced a version for Coffee Script, is there any way of porting this to the normal .js file? Thanks for your help.

allyhazell avatar Apr 20 '13 22:04 allyhazell

Try this: https://github.com/mkoistinen/jquery-simple-slider/blob/master/js/simple-slider.js

mkoistinen avatar Apr 20 '13 22:04 mkoistinen

Fantastic. Works like a dream. Thanks Martin, you're a star.

On 20 Apr 2013, at 23:30, Martin Koistinen [email protected] wrote:

Try this: https://github.com/mkoistinen/jquery-simple-slider/blob/master/js/simple-slider.js

— Reply to this email directly or view it on GitHub.

allyhazell avatar Apr 21 '13 10:04 allyhazell

@swhinnem,

I believe the highlight feature was added (3 months ago) to the core-codebase after I issued my Pull Request (4 months ago).

@loopj, is this project accepting PRs?

mkoistinen avatar Jul 03 '13 20:07 mkoistinen

I took the latest version and the version mkoisttinen references above, and did a bit of splicing. The result is here:

https://github.com/jeffedsell/jquery-simple-slider/blob/master/simple-slider.js

It works in all the testing I've done so far.

jeffedsell avatar Nov 13 '13 21:11 jeffedsell

Yeah, its a shame you have to do that. I guess this repo isn't being updated.

mkoistinen avatar Nov 13 '13 23:11 mkoistinen

it's a shame this is not maintained :( I will use the add-touch-support instead of the original one because this is a mandatory feature these days.

Thanks a lot @mkoistinen !

RicardoGeek avatar Jan 05 '16 15:01 RicardoGeek