drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

Getting issues on touch screens with v1.0.3 #429

Open bitf12m033 opened 3 years ago

bitf12m033 commented 3 years ago

I was using v1.0.2 and getting issues with touch screen , however I was able t fixed it using the touchend event by adding with IfClicked event. However , after upgraded to v1.0.3 it is not working with on touch screens again even I have applied touchend event . Please help

SebZar commented 1 year ago

Hi, try the following:

Download the not minimized version.

Change the following line: _mobile = /ip(hone|od|ad)|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);

to

_mobile = /ip(hone|od|ad)|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) || (/windows/i.test(navigator.userAgent) && navigator.maxTouchPoints > 1);

Works for me on a Windows device with a iiyama touch screen.