-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
focus event on NavigationWindow windwos (with examples) #34
Comments
To make it more clear and to supply the examples, "add this code on the bottom" - works on both examples:
setTimeout(function(){
var newWin = Ti.UI.createWindow({
backgroundColor: 'blue',
});
newWin.addEventListener('focus', function(){
Ti.API.info('new window focus');
});
navController.openWindow(newWin);
}, 3e3);
|
Hi, Did this get resolved? |
No. This issue is still present. |
Ok thanks! Kind regards Lyn From: tujoworker [email protected] No. This issue is still present. ‹ |
Hi!
on NavigationWindow you can have a focus/blur listener on opening/closing windows. Nice to have to know if an windows closes "before" the fx is over. There are other reasons as well.
If we add the NavigationWindow into the NappSliderMenu, the focus/blur event listeners don't fire anymore and closing/opening windows. The open/close event listeners works just fin.
Some examples to test:
app.js - NappSliderMenu version
var win = Ti.UI.createWindow({ backgroundColor:'#fff', }); win.addEventListener('focus', function(){ Ti.API.info('focus'); }); win.addEventListener('blur', function(){ Ti.API.info('focus'); }); var navController = Ti.UI.iOS.createNavigationWindow({ window : win, }); var NappSlideMenu = require('dk.napp.slidemenu'); var window = NappSlideMenu.createSlideMenuWindow({ centerWindow: navController, }); window.open();
app.js - default
var win = Ti.UI.createWindow({ backgroundColor:'#fff', }); win.addEventListener('focus', function(){ Ti.API.info('focus'); }); win.addEventListener('blur', function(){ Ti.API.info('focus'); }); var navController = Ti.UI.iOS.createNavigationWindow({ window : win, }); navController.open();
The text was updated successfully, but these errors were encountered: