Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13611] Android: Map inside ScrollableView doesn't scroll properly

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsapi
ReporterHieu Pham
AssigneeUnknown
Created2013-04-17T23:21:55.000+0000
Updated2018-02-28T20:03:31.000+0000

Description

When a map view is put inside a Scrollable view, when we scroll the map, sometimes the ScrollableView takes priority. This is the case for both map v1 and v2 implementation. Testing steps for map v2. 1.
var window = Titanium.UI.createWindow({});
window.open();
  

  
var MapModule = require('ti.map');
   
var map = MapModule.createView({
    userLocation: true,
    mapType: MapModule.NORMAL_TYPE,
    animate: true,
    region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, 
});
  
var anno = MapModule.createAnnotation({
                latitude: -33.86665,
                longitude: 151.20689,
                title: "Test Annotation",
                subtitle: "Test Point subtitle",
                animate: true,
});
 
anno.addEventListener('click', function(e) {
    Ti.API.info("Annotation popup clicked");
});
 
map.addAnnotations([anno]); 
  
var view = Ti.UI.createScrollableView({views: [map], showPagingControl: true});
window.add(view);
2. Scroll around with the map view and you'll notice that sometimes the ScrollableView will take priority.

Comments

No comments

JSON Source