{ "id": "122753", "key": "TIMOB-15888", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15940", "description": "2014 Sprint 07 SDK", "name": "2014 Sprint 07 SDK", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-08T21:21:31.000+0000", "created": "2013-11-21T12:20:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "dev-investigate", "module_webview", "qe-closed-3.3.0", "qe-testadded", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-04-28T08:09:18.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nThe WebView is unable to zoom in on maps using pinch gestures.\r\nThe issue seems to go away if the user pinch zooms another part of the page or on a previous page, before pinch zooming the map.\r\nAndroid API level is set to 11 in the tiapp.xml manifest.\r\n\r\nh4. Extra info\r\nExample pages where pinch zooming doesn't work:\r\nhttp://leafletjs.com/examples/mobile-example.html\r\nhttps://maps.google.com/\r\n\r\nViewport metatag is being used on the page to correctly scale the html on the device\r\n\r\n\r\nQ&A about the issue:\r\nhttp://developer.appcelerator.com/question/158749/titanium-webview-leafletgmaps-pinch-zoom-not-working-properly\r\n\r\nh4. Testcase\r\n{code:title=Example.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n\ttop: '20dp',\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL\r\n});\r\n\r\nwin.add(Ti.UI.createWebView({\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL,\r\n\turl: 'http://leafletjs.com/examples/mobile-example.html'\r\n\t//url: 'https://maps.google.com'\r\n}));\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: WebView cannot pinch zoom on map", "creator": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "3.1.3.GA, tested on android 4.2.1+ devices", "comment": { "comments": [ { "id": "281376", "author": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was looking through the TiMapView source, and the following method caught my attention\n{code}\n @Override\n protected boolean allowRegisterForTouch()\n {\n // Skip TiUIView registration. \n // Handled inside the LocalMapView as it is not working in the TiUIView\n return false;\n }\n{code}\nI then created a new module, added a native webview, and added the above method.\nPinch zooming seems to be working perfectly after adding the above.", "updateAuthor": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T09:17:14.000+0000", "updated": "2013-11-26T09:17:14.000+0000" }, { "id": "284429", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "The issue cannot reproduce with the release master 3.2.0\nTested with: \nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK version: 3.2.0\nTested on\nDevice: Samsung galaxy s duos Android version: 4.0.4\n", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-16T12:28:30.000+0000", "updated": "2013-12-16T12:28:30.000+0000" }, { "id": "285622", "author": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue still persists in version 3.2.0.GA\r\n\r\nTested with:\r\nTitanium Studio, build: 3.2.0.201312191547\r\nTitanium SDK version: 3.2.0.GA\r\n\r\nTested on\r\nNexus 5 (4.4.2)\r\nSamsung galaxy S4 (4.3)\r\nSamsung galaxy S2 (4.2)", "updateAuthor": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T08:23:43.000+0000", "updated": "2013-12-23T08:23:43.000+0000" }, { "id": "291614", "author": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any updates on the issue, or have you forgot all about it?", "updateAuthor": { "name": "stsje", "key": "stsje", "displayName": "Stephan Jensen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-06T08:20:09.000+0000", "updated": "2014-02-06T08:20:09.000+0000" }, { "id": "292379", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Use scaleDetector only if PINCH event needs to be handled as it interfere with the WebView pinch zoom.\r\nIssue is more visible with google map\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5345", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-11T17:26:39.000+0000", "updated": "2014-02-11T17:26:39.000+0000" }, { "id": "297688", "author": { "name": "mavno", "key": "mavno", "displayName": "Martin N", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there a workaround for this issue until 3.3.0 is released ?", "updateAuthor": { "name": "mavno", "key": "mavno", "displayName": "Martin N", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-03-18T10:14:02.000+0000", "updated": "2014-03-18T10:14:02.000+0000" }, { "id": "302666", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix using:\r\nOSX: 10.9.2\r\nXcode: 5.1.1\r\nStudio - 3.3.0.201404251359\r\nSDK - 3.3.0.v20140425191906\r\nacs-1.0.14\r\nalloy-1.4.0-dev\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1-beta1\r\nDevice: LG-P970 (4.0.4)\r\nAs expected Pinch zoom works fine on the map.", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-28T06:40:52.000+0000", "updated": "2014-04-28T06:40:52.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }