{ "id": "176185", "key": "TIMOB-28443", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-10T19:32:28.000+0000", "created": "2021-05-07T20:27:35.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ScrollView", "contentOffset", "ios", "regression", "zoom" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-05-10T19:32:28.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "See the following test case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n contentWidth: 'auto',\r\n\tcontentHeight: 'auto',\r\n\ttop: 0,\r\n\tbottom: 0,\r\n\tbackgroundColor: 'black',\r\n\tshowVerticalScrollIndicator: false,\r\n\tshowHorizontalScrollIndicator: false,\r\n\tmaxZoomScale: 3,\r\n\tminZoomScale: 1,\r\n\tzoomScale: 1,\r\n\tdisableBounce: true\r\n\r\n});\r\nvar content = Ti.UI.createImageView({ image: Ti.UI.createView({ width: 100, height: 100, backgroundColor: 'red', zoomScale: 1 }).toImage() });\r\n\r\nscrollView.addEventListener('doubletap', () => {\r\n console.warn('Zoom!')\r\n\tscrollView.setZoomScale((scrollView.zoomScale === 1) ? 2 : 1, {\r\n\t\tanimated: true\r\n\t});\r\n});\r\n\r\nscrollView.add(content);\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}\r\nWorks fine on SDK 9.3.2, throws an error and does not work on SDK 10:\r\n{code}\r\n[ERROR] /app.js:23\r\n[ERROR] scrollView.setZoomScale(scrollView.zoomScale === 1 ? 2 : 1, {\r\n[ERROR] ^\r\n[ERROR] TypeError: scrollView.setZoomScale is not a function. (In 'scrollView.setZoomScale(scrollView.zoomScale === 1 ? 2 : 1, {\r\n[ERROR] animated: true })', 'scrollView.setZoomScale' is undefined)\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: ScrollView setZoomScale()/setContentOffset() methods crash as of 10.0.0", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "458663", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The {{ScrollView.setContentOffset()}} method is busted too.\r\n\r\nThis looks like a negative consequence of our remove of getter/setter methods.\r\n\r\nI'll need to double check how we kept {{WebView.setHtml()}} support on iOS and do the same on {{ScrollView}}.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-08T00:32:01.000+0000", "updated": "2021-05-08T00:32:01.000+0000" }, { "id": "458664", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12788", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-05-08T01:50:36.000+0000", "updated": "2021-05-08T01:50:36.000+0000" }, { "id": "458668", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-05-10T19:32:20.000+0000", "updated": "2021-05-10T19:32:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }