Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9674] MobileWeb: view - can not click a view that is over top of an imageView when there is not backgroundColor set on the view in IE9

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:32:13.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsMobileWeb
Labelslinvalid
ReporterJon Alter
AssigneeChris Barber
Created2012-06-20T16:29:03.000+0000
Updated2018-04-04T23:20:25.000+0000

Description

You can not click a view that is over top of an imageView when there is not backgroundColor set on the view in IE9

Steps to repro:

Step 1: run the code below in ie9 Step 2: click on the image and notice that the singletap event is not fired unless you click to the side of the image on the view (if you run it in another browser like chrome you will be able to click directly on the image and the singletap event will fire).
var win  = Ti.UI.createWindow({
	backgroundColor: 'white'
});
win.open();

var iv = Ti.UI.createImageView({
	height: 300,
	width: 300,
	backgroundColor: '#666',
	image: "http://outskirtsbattledome.wikispaces.com/file/view/Bender.jpg/125149777/Bender.jpg",
	zIndex: 5
});

var view = Ti.UI.createView({
	// Workaround
	// backgroundColor: '#000',
	// opacity: 0,
	zIndex: 10
});
view.addEventListener('singletap', function(){
	Ti.API.info('########### singletap');
});

win.add(iv);
win.add(view);

Workaround:

Set the backgroundColor and set the view opacity to zero

Comments

  1. Lee Morris 2017-05-01

    Resolving ticket as "Won't Fix" as MobileWeb is no longer supported.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source