Jump to content
Search Community

PhoneGap Rotation Orientation Wackiness

Joe Hakooz test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...