jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

datebox is Iphone 3G, safari at very slow. #218

Closed qtrung closed 11 years ago

qtrung commented 12 years ago

datebox is Iphone 3G, safari at very slow.

qtrung commented 12 years ago

How i should do to resolve this problem

jtsage commented 12 years ago

Which mode? I'll try and get ahold of some hardware to test/optimize a bit.

ahmedlehamdi commented 12 years ago

@jtsage : i have the same problem please i need help i got the date box form this url (http://dev.jtsage.com/jQM-DateBox2/) and the datebox works very fine on all devices but too slow only on iPhone 4 and iPhone 4s

algorhythm commented 12 years ago

the problem could be, that the datebox-plugin is not yet ready for iPad, iPhone and some other mobile devices. with this plugin properties you can change the 'click' and the 'clickalt'-events. By default they are setted to 'vclick' and 'click'. 'vclick' is especially for jQueryMobile.

Read the following tutorial: http://stackoverflow.com/questions/10165141/jquery-on-and-delegate-doesnt-work-on-ipad/12748593#12748593

and set the properties to '(isIPod() || isIPad() || isIPhone()) ? "touchstart" : "vclick"' and '(isIPod() || isIPad() || isIPhone()) ? "touchstart" : "click";' and it will run better i think.