Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12789

iOS: orientationchange event sometimes fires on app startup

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.0.2
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      TiSDK 3.0.2.v20130207164659

      Description

      Actual behavior
      The orientationchange event sometimes fires on app startup.
      eg: I run app in simulator 5 times (via titanium build), it fires 3 of those times.

      Expected behavior
      It shouldn't fire at all on app startup. It should only fire on an orientationchange event.

      Test case

      Ti.Gesture.addEventListener('orientationchange', function(e) {
          if(Ti.Gesture.isLandscape()) {
              Ti.API.warn('orientationchange ---> landscape');
          } else {
              Ti.API.warn('orientationchange ---> portrait');
          }
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                meeech Mitchell Amihod
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15691
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration