Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4497] mapview click event only fire when touchstart and touchend listeners are used

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-12T18:35:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterPaul Dowsett
AssigneeIngo Muschenetz
Created2011-06-27T05:45:26.000+0000
Updated2017-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!!! ************");
// });

Comments

  1. Lee Morris 2017-06-12

    Closing ticket due to the time passed and lack of progress since the opening of the ticket. Any problems, please file a new ticket.

JSON Source