TouchEnabled:false still passes click through...
I've got a "loading data" window that I show..
var messageWin = Titanium.UI.createWindow({
    height:'80%',
    width:'80%',
    borderRadius:30,
    touchEnabled:false,
    orientationModes : [
    Titanium.UI.PORTRAIT,
    Titanium.UI.UPSIDE_PORTRAIT,
    Titanium.UI.LANDSCAPE_LEFT,
    Titanium.UI.LANDSCAPE_RIGHT,
    ]
});
var messageView = Titanium.UI.createView({
    height:'80%',
    width:'80%',
    borderRadius:30,
    backgroundColor:'#000',
    opacity:0.7,
    touchEnabled:false
});
var messageLabel = Titanium.UI.createLabel({
    text:'',
    color:'#fff',
    width:'100%',
    height:'auto',
    font:{
        fontFamily:'Helvetica Neue',
        fontSize:60
    },
    textAlign:'center'
});
but even with TouchEnabled:false on both the window and the view.. I can still click on elements underneath the window..
any idea how to stop this?
4 Answers
- 
				
					touchEnabled: falsewill still pass clicks to parent views, it just won't register the event on the view that has the property.What I think you need is bubbleParent: false, which will stop the click event from propagating.Perhaps you will also need to set touchEnabledto true for it to work.
- 
				
					Critter You probably need to make messageWin a heavyweight window by setting a property like navBarHidden:false. Hope this works! :) If not, post again. 
- 
				
					Oi mate.. yeah.. just tried that.. I'm still able to click through the messageWin. 
- 
				
					well for now… I just enabled touch on both the view and the window.. added an eventListener to the window for click… and did nothing… that seems to be a decent hack..