incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radoslav Todorov (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-302) Orientation change issue (PhoneGap 1.5.0 iOS)
Date Wed, 07 Mar 2012 06:40:05 GMT
Orientation change issue (PhoneGap 1.5.0 iOS)
---------------------------------------------

                 Key: CB-302
                 URL: https://issues.apache.org/jira/browse/CB-302
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.5.0
         Environment: Testted on iOS 5 iPod Touch, iOS 5 iPad and the iOS Simulator.
Universal App with deployment target 5.0 using PhoneGap(Cordova) 1.5.0.
            Reporter: Radoslav Todorov
            Assignee: Shazron Abdullah


The "orientationchange" event is called twice.
Nothing from the original PhoneGap library is modified.
I tested this ot two different applications, the one is nothing more than the code below.
 
This is the code i use: 
 
        function change(e){
          console.log("change");
          console.log(window.orientation);

        }
        document.addEventListener("orientationchange",change);

Here are some of the logs i get from the above code:

             2012-03-06 19:39:12.353 Test[84253:207] [INFO] 0
             2012-03-06 19:39:12.359 Test[84253:207] [INFO] change
             2012-03-06 19:39:12.360 Test[84253:207] [INFO] 0
             2012-03-06 19:39:13.301 Test[84253:207] [INFO] change
             2012-03-06 19:39:13.303 Test[84253:207] [INFO] 90
             2012-03-06 19:39:13.305 Test[84253:207] [INFO] change
             2012-03-06 19:39:13.306 Test[84253:207] [INFO] 90
             2012-03-06 19:39:14.710 Test[84253:207] [INFO] change
             2012-03-06 19:39:14.712 Test[84253:207] [INFO] 180
             2012-03-06 19:39:14.715 Test[84253:207] [INFO] change
             2012-03-06 19:39:14.716 Test[84253:207] [INFO] 180
             2012-03-06 19:39:15.477 Test[84253:207] [INFO] change
             2012-03-06 19:39:15.480 Test[84253:207] [INFO] -90
             2012-03-06 19:39:15.485 Test[84253:207] [INFO] change
             2012-03-06 19:39:15.485 Test[84253:207] [INFO] -90

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message