Skip to content

iOS: leftButton not always responding to click #577

@m1ga

Description

@m1ga

The leftButton is not always responding to a click. It sometimes stays in the "clicked" position too.

Steps to reproduce:

  • run the example below
  • click on the pin
  • click on the leftButton icon
  • watch the log output
  • clicking the infobox works everytime
var Map = require('ti.map');
var win = Titanium.UI.createWindow();

var mountainView = Map.createAnnotation({
	latitude: 37.390749,
	longitude: -122.081651,
	title: 'Appcelerator Headquarters',
	subtitle: 'Mountain View, CA',
	leftButton: Ti.UI.iOS.SystemButton.INFO_LIGHT,
});

var mapview = Map.createView({
	mapType: Map.NORMAL_TYPE,
	region: {
		latitude: 37.390749,
		longitude: -122.081651,
		latitudeDelta: 0.01,
		longitudeDelta: 0.01
	},
	animate: true,
	regionFit: true,
	userLocation: true,
	annotations: [mountainView]
});

win.add(mapview);

var clickCounter = 0;
mapview.addEventListener('click', function(event) {
	Ti.API.info(clickCounter + ': clicked ' + event.clicksource);
	clickCounter++;
});
win.open();

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions