{ "id": "88085", "key": "TIMOB-8061", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-19T22:17:31.000+0000", "created": "2012-03-16T13:15:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-mw020912" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-03T23:37:08.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Create a default mobile web app and change the app.js code to the following:\r\n{code}\r\n\r\nvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'black'\r\n\t\t});\r\n\r\nvar photosView = Ti.UI.createScrollableView({\r\n\t\t backgroundColor:'black',\r\n\t\t width : 320,\r\n\t\t height : 450,\r\n\t\t showPagingControl:true,\r\n\t\t pagingControlHeight:20,\r\n\t\t});\r\n\t\t\r\n\t\tvar imgArray = [];\r\n\t\tvar img1 = Ti.UI.createImageView({\r\n\t\t image:'http://media.koreus.com/200606/1image-illusion-optique14-mini.jpg'\r\n\t\t});\r\n // with maxZoomScale commented out it produces the same result\r\n\t\tvar imgWrapper = Ti.UI.createScrollView({\r\n\t\t\tmaxZoomScale:2.0,\r\n\t\t});\r\n\t\timgWrapper.add(img1);\r\n\t\t\r\n\t\timgArray.push(imgWrapper);\r\n\t\tphotosView.views = imgArray;\r\n\t\t_window.add(photosView);\r\n_window.open();\r\n{code}\r\n\r\n2. Run the app\r\n3. Pinch to zoom the image\r\n\r\nActual result:\r\nAn error of \"TypeError: Result of expression 'this._touchEndLocation' [null] is not an object.\" is produced\r\n\r\nExpected result:\r\nOne is able to pinch to zoom the image", "attachment": [], "flagged": false, "summary": "MobileWeb: ScrollView - Using pinch to zoom produced the error \"TypeError: Result of expression 'this._touchEndLocation' [null] is not an object.\"", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203152033\r\nTi Mob SDK 2.0.0.v20120316074737 hash r5aa535ab\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "186977", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note: Zooming a scroll view is not supported on Mobile Web, and thus maxZoomScale is not supported either. It doesn't hurt to define it, but the value is not used anywhere. The crash is a valid bug though, obviously.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-18T16:04:06.000+0000", "updated": "2012-03-18T16:04:06.000+0000" }, { "id": "186978", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also note: Mobile Web does not support zooming an image view either.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-18T16:08:39.000+0000", "updated": "2012-03-18T16:08:39.000+0000" }, { "id": "187076", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1741", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T09:45:03.000+0000", "updated": "2012-03-19T09:45:03.000+0000" }, { "id": "409128", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T23:37:08.000+0000", "updated": "2017-03-03T23:37:08.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }