drgullin / icheck

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

300ms delay on Safari in iOS #95

Closed jonobobo closed 10 years ago

jonobobo commented 10 years ago

Any chance the click event could fire on touchend instead of click when in a mobile browser? That typical 300ms delay is annoying when working with large checkbox lists, and this plugin doesn't play too well with polyfills like FastClick

drgullin commented 10 years ago

iCheck 2.x has a "fastclick" option out of the box, its name is tap. If set to true, inputs state is changed directly after touchend/pointerup events (Windows tablets and phones are also supported), without 300ms "click delay".

iCheck 2.x is also compatible with the Fastclick plugin - https://github.com/ftlabs/fastclick, but doesn't require it.