[TIMOB-6977] iOS:ScrollableView Zoom in ScrollableView is not working in 1.8
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-02-10T00:03:44.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | regression |
Reporter | Mauro Parra-Miranda |
Assignee | Blain Hamon |
Created | 2012-01-04T12:42:07.000+0000 |
Updated | 2012-02-10T00:03:44.000+0000 |
Description
PROBLEM
Zoom used to work inside a ScrollableView, with 1.7.5. The same code doesn't work (doesn't zoom) in 1.8.TESTCASE
Test this code in 1.7.5, do a zoom. Works fine. Do the same with 1.8, won't work.
var win = Ti.UI.createWindow({
backgroundColor: 'black'
});
var photosView = Ti.UI.createScrollableView({
backgroundColor:'black',
width : 320,
height : 450,
showPagingControl:true,
pagingControlHeight:20,
maxZoomScale : 2.0,
});
var imgArray = [];
var img1 = Ti.UI.createImageView({
image:'http://media.koreus.com/200606/1image-illusion-optique14-mini.jpg'
});
imgArray.push(img1);
photosView.views = imgArray;
win.add(photosView);
win.open();
The removal of having these extra scrollviews (What provide the pinch and zoom) was a design decision for 1) parity with Android and 2) performance. If the end developer wants pinch and zoom, they must ask for it explicitly by using a scrollview inside a scrollable view.
as per Blain, this is now expected behavior. Closing.