{ "id": "89143", "key": "TIMOB-8413", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-03-29T10:31:50.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:58:00.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Issue*\r\nCustomer wants to be able to disable Ti.UI.WebView bounce via a property.\r\n\r\n*Code*\r\nThis is what is required to be added to the TiUIWebView.m file:\r\n\r\n{code}\r\n#define PAGE_VERTICAL_BOUNCE false\r\n\r\n if (!PAGE_VERTICAL_BOUNCE) {\r\n for (id subview in webview.subviews)\r\n if ([[subview class] isSubclassOfClass: [UIScrollView class]])\r\n ((UIScrollView *)subview).bounces = NO;\r\n }\r\n\r\nBefore: [self addSubview:webview];\r\n{code}\r\n\r\n*Notes*\r\n-I created this ticket as a bug, since this is possible to do natively.\r\n-Customer request: Is there a way this can be included as a feature in future SDK release by adding additional boolean property to webview called bounce?\r\n-HD ticket: http://support-admin.appcelerator.com/display/APP-296567", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.WebView disable bounce through property", "creator": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "189155", "author": { "name": "kmakkad", "key": "kmakkad", "displayName": "Kinshuk Makkad", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is a correction in above code '#' stmbol before define is missing:\r\n\r\n#define PAGE_VERTICAL_BOUNCE false\r\n \r\n if (!PAGE_VERTICAL_BOUNCE) {\r\n for (id subview in webview.subviews)\r\n if ([[subview class] isSubclassOfClass: [UIScrollView class]])\r\n ((UIScrollView *)subview).bounces = NO;\r\n }\r\n \r\nBefore: [self addSubview:webview];", "updateAuthor": { "name": "kmakkad", "key": "kmakkad", "displayName": "Kinshuk Makkad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-29T10:44:46.000+0000", "updated": "2012-03-29T10:44:46.000+0000" }, { "id": "189156", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Edited the code to reflect the correct syntax.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-29T10:46:22.000+0000", "updated": "2012-03-29T10:46:22.000+0000" }, { "id": "189447", "author": { "name": "kmakkad", "key": "kmakkad", "displayName": "Kinshuk Makkad", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Before: [self addSubview:webview]; is not part of code...\r\nits a hint, that we have to add code before this->\"[self addSubview:webview];\" line.", "updateAuthor": { "name": "kmakkad", "key": "kmakkad", "displayName": "Kinshuk Makkad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T05:59:15.000+0000", "updated": "2012-04-02T05:59:15.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }