Big issue : when changing into landscape, the hit area of all my display objects shift/change
- assume big app that has some rectangles rect1…rectn (display.newRect)
- added event listener addEventListener(“tap”, function() sth end )to rect1…rectn
A. starting app, holding device in portrait, build.setting default=portrait
B. tapping the rectangles ==> all works well ==> events fire
C. switching to landscape
D. tapping the rectangles again ==> no event fires
E. tapping BELOW the rectangles (approx same area as rectangles) ==> EVENTS FIRE
I. Its as switching to landscape shifted the hit area down by the height of rect.
II. I don’t think its a code issues, as I am using listener (we don’t compute hit ourselves)
Important
All hit areas become shifted, not only the rectangles, but ALL displayObjects with touch or tap events. It is just easier to explain the issue by focusing on a couple of rects.
If I start in landscape mode, its the other way around :
A. starting app, holding device in landscape, build.setting default=portrait
B. tapping the rectangles ==> all works well ==> events fire
C. switching to portrait
D. tapping the rectangles again ==> no event fires
E. tapping BELOW the rectangles (approx same area as rectangles) ==> EVENTS FIRE
Has anyone observed / seen this before ???
Some more details
- This occurs only on the android platform, i.e. our galaxy 10.1 tab. Its working fine in the simulator and on our ipad minis
- We see excessive log messages "V/WindowManager( 302): Preventing status bar from hiding by policy "in the android adb logcat log
Build : 2013.1103 Windows
Device : Galaxy Tab 10.1 GT-P7500 Android 3.2