incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-302) orientationchange event fires off twice under iOS 5.x
Date Fri, 13 Apr 2012 19:54:17 GMT

     [ https://issues.apache.org/jira/browse/CB-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah resolved CB-302.
---------------------------------

    Resolution: Fixed

Fix commit: http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=0fefc52ae00bfa4f8b280186a42cc0c649e425d1
                
> orientationchange event fires off twice under iOS 5.x
> -----------------------------------------------------
>
>                 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: Tested 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
>             Fix For: 1.6.1
>
>
> 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