JQuery Phonegap

Webview orientation with Phonegap

I was having this really weird problem in PhoneGap where when the orientation would change the webview would not resize to fit the whole screen.  Turns out that the meta viewport tag was causing the problem.  My viewport setting was this: 1 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>Continue Reading “Webview orientation with Phonegap”

CSS JavaScript JQuery Phonegap

Transform performance on mobile applications

Just a quick one today.  I have read on several web pages that if you want to speed up the rendering of your site that you need to add -webkit-transform: translate3d(0,0,0) to the page elements to have the browser use the GPU to render the page instead of the CPU. I tried this trick several timesContinue Reading “Transform performance on mobile applications”

Phonegap

External links in phonegap

Found an interesting behavior today.  I have an LI element that has a click handler on it, but that LI element has an A element which has a link.  So it looked kind of like this: 1 2 3 4 5 <ul> <li onclick="doSomething(); "> <A href="http://somewhere" target="_blank">Go</a> </li> </ul><ul> <li onclick="doSomething(); "> <A href="http://somewhere"Continue Reading “External links in phonegap”

JQuery Phonegap

Handling clicks for mobile platforms [UPDATED]

I’ve been doing a lot of work in Phonegap lately and I really like it.  However, one of the things I don’t like is that click events are really, really slow.  There’s a reason for this.  How does the browser know if it’s a click or the beginning of a move?  The answer to thisContinue Reading “Handling clicks for mobile platforms [UPDATED]”