Share Posted December 29, 2012 This is probably an edge case so it's not a huge deal, but thought I would report this as I spent the past few hours figuring it out... My PhoneGap (Cordova) iPad app allows orientation changing in all four directions. 1 = home button bottom 2 = home button top 3 = home button right 4 = home button left For each orientation I use GSAP to rotate an element so that the top of that element always points to the home button. This worked in all variations except when rotating from 3 or 4 to 1. When rotating to orientation 1 I was using rotation:0 Changing rotation:0 to rotation:360 resolved the issue. Crazy right? Hope that helps someone... Link to comment Share on other sites More sharing options...
Share Posted December 29, 2012 Hi Joe, Thanks for logging your experience here. You may save someone a few hours of hair-pulling some day. Link to comment Share on other sites More sharing options...
Share Posted December 30, 2012 Have you tried using shortRotation so that it goes in the shortest direction? Just a thought. Link to comment Share on other sites More sharing options...
Author Share Posted December 31, 2012 Short Rotation seems to work great. But when I went to test the previous way (that was acting wacky) I wasn't able to replicate the issue. So now I'm not sure what the heck happened. Let's chalk this up to programmer error. I'll post here if there are any other developments... Link to comment Share on other sites More sharing options...
Author Share Posted December 31, 2012 Conclusion... Ok, I'm a dumbass... The problem was the event I was calling in Objective C was sending the incorrect orientation. Not related in any way to GSAP. Link to comment Share on other sites More sharing options...
Share Posted December 31, 2012 Glad to hear you figured it out. Thanks for letting us know! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now