egorkhmelev / jslider

jQuery Slider plugin (THIS PROJECT IS NOT MAINTAINED ANYMORE, READ BELOW FOR MORE INFO)
http://egorkhmelev.github.com/jslider
MIT License
508 stars 203 forks source link

Sliders not working on android device #20

Open marcb70 opened 12 years ago

marcb70 commented 12 years ago

works fine in a windows Chrome, or Safari browser, and on an ipad but they wont move on either an asus transformer prime running ICS tried with opera, chrome beta, browser, and dolphin hd. also tried with the defualt browser on a 2.3.2 android phone mythouch g4. To double check it wasn't just my code I just checked your site and they don't slide.

cmjacques commented 12 years ago

I just tested on my Samsung Galaxy S (i9000) running ICS and the sliders do work, however they are quite difficult to click and drag and the performance is rather laggy. I think I would find them frustrating to use as an end user.

I also tried on my "new" iPad and the sliders work very well - better than expected actually.

Great job on this plugin Egor. Love it.

marcb70 commented 12 years ago

which browser were you using cmjacques? The only browser that I could get it to work on my transformer prime was dolphin HD with it in iPad simulation mode and even then it was quite unresponsive like you stated you experienced.

cmjacques commented 12 years ago

I used the default/standard browser. Haven't had a need to install any other browsers on my phone.

ebuildy commented 12 years ago

Did you try the demo or on your web site ? Did you see any JS errors ?

Working fine on my Galaxy

Moistly commented 12 years ago

Also not working (no dragging) on on ASUS Transformer TF101 Android 4.0.3. Tested on Chrome , FF 15.0.1 and the stock browser.

No JS in console. I've also tried remote debugging with Chrome and no errors/ warnings reported

Moistly commented 12 years ago

Found the issue - draggable-0.1.js line 89

this.supportTouches_ = ($.browser.webkit && navigator.userAgent.indexOf("Mobile") != -1);

is returning undefined

Changing it to

this.supportTouches_ = !!('ontouchstart' in window);

Seems to be a better option

amritk commented 11 years ago

I'm having huge performance issues on iOS and Android as well. Its works amazing on desktop, but its laggy to the point of being unusable on mobile. Is there a fix for this?

nachbarshund commented 10 years ago

Thanks a lot. That worked for me too:

this.supportTouches_ = !!('ontouchstart' in window);

Testes on iPad mini and Nexus with Android.