{ "id": "61587", "key": "TIMOB-955", "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": "11363", "description": "Mobile 1.8.0 M10", "name": "Sprint 2011-31", "archived": true, "released": true, "releaseDate": "2011-08-08" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-07-27T11:22:41.000+0000", "created": "2011-04-15T02:40:07.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T19:06:21.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": "{html}
Hi there.
\r\nWhen you add a EventListener for swipe either on a window (with\r\na webview) or at a webview, it'll disable scrolling the\r\nwebView.
\r\nHowto reproduce:
\r\n1) Create a new project
\r\n2) Add a webView to one of the windows (with enough content, so it\r\nscrolls...)
\r\n3) Add the EventListener to the window or view\r\n\"foo.addEventListener('swipe', function (e) {} )\"
Every function will do, even empty ones.
Forgot:
\nThis affects the mobile sdk on ipad.
\nTestet with 1.2.x and 1.3.0.
Workaround:
\nYou could use custom webview url handler events instead.
\n\nhttp://github.com/subtleGradient/titanium_mobile/tree/develop-webvi...
\nDetect the swipe in your page's JavaScript and then fire an\nevent on the webView instance from the page.
\nEven works from external sites!
\nwebView.addEventListener('my-swipe', handleSwipe)
\n
\nAnd then in the page…
\n\nwindow.location = \"app-my-swipe://?_\" + +new Date;
\n
\nAnd it'll fire your 'my-swipe' event in your Titanium\ncontext.
ug… broken formatting :/
May not be able to support this, because if you intercept swipes\non a webview, they stop working.
This is happening, not only with the swipe event, but with any\ntouch events. Example:
\n\n var win = Titanium.UI.createWindow();\n var web = Titanium.UI.createWebView({url: 'some.pdf'});\n var view = Ti.UI.createView({});\n view.add(web);\n win.add(view);\n win.open({modal:true});\n\n web.addEventListener('click', function(e){\n alert('click');\n });\n\n /*\n view.addEventListener('click', function(e){\n alert('click');\n });\n */\n /*\n win.addEventListener('click', function(e){\n alert('click');\n });\n */
\n
\nHD Ticket: http://developer.appcelerator.com/helpdesk/view/74881
\nTested on iPhone Simulator 4.2
\nTi SDK 1.6.0 RC1