[TIMOB-189] Orientation Change gesture not working with SDK 3.1.2
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:52:17.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | Android |
| Labels | android, event, gesture, listener |
| Reporter | mjfransen |
| Assignee | Don Thorp |
| Created | 2011-04-15T02:25:05.000+0000 |
| Updated | 2011-04-17T01:52:17.000+0000 |
Description
I spent about two hours doing numerous tests and could not get it to work. I tried in the emulator and on my actual phone. Very frustrating.
Titanium.Gesture.addEventListener('orientationchange',function(e)
{
if (Titanium.Gesture.isLandscape(e.to))
{
document.getElementById("status").innerHTML = 'Stop Shaking me';
}
else if (Titanium.Gesture.isPortrait(e.to))
{
document.getElementById("status").innerHTML = 'Stop Shaking me';
}
});
Same running on HTC Desire. TITANIUM Version 1.3.0 and 1.3.2
also not running in any version:
Titanium.Gesture.addEventListener ('orientationchange', function ( e )
{
});
(from [ed11289d1258b673db8f4f27fc8e555399bd289a]) [#189 state:resolved] New @ContextSpecific annotation for module classes, to put their 'singletons' per context rather than per app. Apply to GestureModule to handle orientationchange listener not being called. http://github.com/appcelerator/titanium_mobile/commit/ed11289d1258b673db8f4f27fc8e555399bd289a"> http://github.com/appcelerator/titanium_mobile/commit/ed11289d1258b...