Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 2.1.4, Release 3.0.0
-
Fix Version/s: Release 3.1.0, 2013 Sprint 04 API, 2013 Sprint 04, 2013 Sprint 07 Core
-
Component/s: Android
-
Labels:
-
Environment:
Titanium Studio 2.1.2
Description
Actual Result
No results. The event is only fired the first time you touch the screen when window is opened. It states in version 1.8.0.1 this feature was available. But in version 2.1.3, 2.1.4 and the new 3.0 SDK this feature is not available.
Expected Result
Being able to detect longpress event on a mapview and return the appropriate parameters.
Notes
When you run this on a iOS device it works.
Test case
var mapView = Ti.Map.createView({
|
mapType : Ti.Map.STANDARD_TYPE,
|
animate : true,
|
regionFit : true,
|
region : {
|
latitudeDelta : 0.02,
|
longitudeDelta : 0.02,
|
},
|
userLocation : true,
|
width : '100%',
|
height : '100%',
|
top : 0,
|
});
|
|
// open a single window
|
var window = Ti.UI.createWindow({
|
backgroundColor : 'white'
|
});
|
|
mapView.addEventListener('longpress', function(e) {
|
alert(e);
|
});
|
|
window.add(mapView);
|
window.open();
|
Attachments
Issue Links
- relates to
-
TIMOB-11841 Android: 'longclick' event data not filled (x, y ...)
-
- Closed
-
-
TIDOC-1037 APIDoc: iOS MapView supports longpress event
-
- Closed
-
-
TIMOB-11856 Android: touchEnabled false on child view causes longpress event to fire when clicked
-
- Closed
-
- mentioned in
-
Wiki Page Loading...