tag:blogger.com,1999:blog-29331675.post487608448328004889..comments2024-03-05T17:37:00.995+01:00Comments on The Delphi Geek: Accelerometer Demogabr42http://www.blogger.com/profile/06903558857617342477noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-29331675.post-5003362982031422632012-02-10T20:12:04.251+01:002012-02-10T20:12:04.251+01:00These are two different effects and event stacks. ...These are two different effects and event stacks. When the orientation changes javascript actually fires a resize event and an orientation event (but safari has further event callbacks which are extentions to the webkit base). In the preliminary RTL i designed i opted to capture the "basic" events. This will ofcourse be altered to include as much as possible in the final release - much thank to Primoz's brilliance on the topic. So when i update the RTL i hope to add some compiler switches that makes the most of both android, chrome and safari mobile. So unless Apple have disabled the "requestFullScreen" method with the parameter for orientation (to lock the orientation like native apps do) we should be able to handle it.<br /><br />Worst case scenario and i'll fork phonegap and provide it myself.<br /><br />I must say we have been extremely lucky to have Primoz on the test team. I dont think I have ever seen a programmer absorb so much information and adapting so quickly to new territory as Primoz.<br /><br />And as always you take on new technology with such eye for details and structure -that it's an inspiration for the rest of us.<br /><br />/Lennart$ABBAhttps://www.blogger.com/profile/01849703745444988905noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-47461171067537898252012-02-10T12:29:01.116+01:002012-02-10T12:29:01.116+01:00@Wouter, that cannot be controlled from the JavaSc...@Wouter, that cannot be controlled from the JavaScript but you can lock device orientation with the button on the iPad.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-55273879321042820172012-02-10T11:49:11.109+01:002012-02-10T11:49:11.109+01:00Works on an iPad2 as well.. if you rotate the scre...Works on an iPad2 as well.. if you rotate the screen too much, the orientation of the browser window changes, but I guess that cannot be controlled.<br /><br />Cool demo though.Wouter van Nifterickhttps://www.blogger.com/profile/03516752706481322727noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-20530056983528242342012-02-10T10:10:06.350+01:002012-02-10T10:10:06.350+01:00Impressive! tested on 1st Gen 1Pad.Impressive! tested on 1st Gen 1Pad.Anonymousnoreply@blogger.com