[TIMOB-4497] mapview click event only fire when touchstart and touchend listeners are used
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-12T18:35:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Paul Dowsett |
Assignee | Ingo Muschenetz |
Created | 2011-06-27T05:45:26.000+0000 |
Updated | 2017-06-12T18:35:55.000+0000 |
Description
When the following code is run, the click event will not fire. However, it will fire if the touchstart and touchend events are uncommented.
In addition to this, be aware of the related issues TIMOB-4498 and TIMOB-4499
Ti.UI.backgroundColor = "white";
var win = Ti.UI.createWindow({
exitOnClose: true
});
var mapview = Ti.Map.createView({
mapType: Ti.Map.STANDARD_TYPE,
region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
animate:true,
regionFit:true,
userLocation:true
});
win.add(mapview);
win.open();
mapview.addEventListener('click', function(){
Ti.API.info("******* click event fired!!! ************");
});
// mapview.addEventListener('touchstart', function(){
// Ti.API.info("******* touchstart event fired!!! ************");
// });
// mapview.addEventListener('touchend', function(){
// Ti.API.info("******* touchend event fired!!! ************");
// });
Closing ticket due to the time passed and lack of progress since the opening of the ticket. Any problems, please file a new ticket.