[AC-1721] Window 'open' & 'close' events do not fire when touchEnabled == false
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2014-06-26T16:30:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 3.3.0.RC, close, event, open, sdk, titanium, window |
Reporter | Gertjan Smits |
Assignee | Shuo Liang |
Created | 2014-06-26T10:59:15.000+0000 |
Updated | 2016-03-08T07:38:13.000+0000 |
Description
The open & close events are not fired when touchEnabled is set to false, when the property is removed, it fires.
var w = Ti.UI.createWindow({
touchEnabled:false,
backgroundColor:'red'
});
w.addEventListener('open', function( ) {
alert('open');
});
w.addEventListener('close', function( ) {
alert('close');
});
w.open();
setTimeout(function( ) {
w.close();
}, 2500);
Hi, when you set touchEnabled: false, w will not register event any more, (include "open", "close", not just 'click' event). *All* the events will be gone. Here is a good explain may help you: http://developer.appcelerator.com/question/154004/what-is-touchenabled Regards Shuo
Ok, that explains the behavior, but I assumed that only *touch* events are ignored, which I think should be the case here. An event like open or close has nothing to do with a touch to the view.
So there is no way to know if a window with touchEnabled set to false has been opened and closed?
I'm also not allowed to know when a WebView is loaded when it's touchEnabled property is false? :( This issue really can not be closed...