-
-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
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();