{ "id": "107924", "key": "TIMOB-12293", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15094", "description": "2013 Sprint 02 BB", "name": "2013 Sprint 02 BB", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-22T18:39:16.000+0000", "created": "2013-01-15T21:48:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "blackberry", "notable", "qe-3.3.0", "qe-testadded" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "25246", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "105808", "key": "TIMOB-11922", "fields": { "summary": "Implement touch_start and touch_end events", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T07:59:59.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Implement the touch events for views.\r\n\r\nh5. Code to be tested\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\tBackgroudColor:'white'\r\n});\r\n\r\nvar view = Titanium.UI.createView({\r\n\tbackgroundColor:'#669966',\r\n\twidth:'90%',\r\n\theight:'94%',\r\n\ttouchEnabled:'true'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'FIRE AN EVENT :',\r\n\ttop:20,\r\n});\r\n\r\nvar l1 = Ti.UI.createLabel({\r\n\ttext:'Touch Start Not Fired',\r\n\ttop:60,\r\n\tleft:0,\r\n\twidth:'400',\r\n\theight:'auto',\r\n\tcolor:'#000',\r\n\tfont:{fontFamily:'Helvetica Neue'}\r\n});\r\n\r\nview.addEventListener('touchstart',function(e){\r\n\tTi.API.info('Touch Start fired');\r\n\tl1.color = 'red';\r\n\tl1.text = 'Touch Start Fired : x :' + e.x + '; y : ' + e.y;\r\n\tsetTimeout(function()\r\n\t\t{\r\n\t\t\tl1.color = '#000';\r\n\t\t},200);\r\n});\r\n\r\nvar l2 = Ti.UI.createLabel({\r\n\ttext:'Touch Move Not Fired',\r\n\ttop:90,\r\n\tleft:0,\r\n\twidth:'400',\r\n\theight:'auto',\r\n\tcolor:'#000',\r\n});\r\n\r\nview.addEventListener('touchmove',function(e){\r\n\tTi.API.info('Touch Move fired');\r\n\tl2.color = 'red';\r\n\tl2.text = 'Touch Move Fired : x :' + e.x + '; y : ' + e.y;\r\n\tsetTimeout(function()\r\n\t\t{\r\n\t\t\tl2.color = '#000';\r\n\t\t},200);\r\n});\r\n\r\nvar l3 = Ti.UI.createLabel({\r\n\ttext:'Touch Cancel Not Fired',\r\n\ttop:120,\r\n\tleft:0,\r\n\twidth:'400',\r\n\theight:'auto',\r\n\tcolor:'#000',\r\n});\r\n\r\nview.addEventListener('touchcancel',function(e){\r\n\tTi.API.info('Touch Cancel fired');\r\n\tl3.color = 'red';\r\n\tl3.text = 'Touch Cancel Fired : x :' + e.x + '; y : ' + e.y;\r\n\tsetTimeout(function()\r\n\t\t{\r\n\t\t\tl3.color = '#000';\r\n\t\t},200);\r\n});\r\n\r\nvar l4 = Ti.UI.createLabel({\r\n\ttext:'Touch End Not Fired',\r\n\ttop:150,\r\n\tleft:0,\r\n\twidth:'400',\r\n\theight:'auto',\r\n\tcolor:'#000',\r\n});\r\n\r\nview.addEventListener('touchend',function(e){\r\n\tTi.API.info('Touch Cancel fired');\r\n\tl4.color = 'red';\r\n\tl4.text = 'Touch Cancel Fired : x :' + e.x + '; y : ' + e.y;\r\n\tsetTimeout(function()\r\n\t\t{\r\n\t\t\tl4.color = '#000';\r\n\t\t},200);\r\n});\r\n\r\nview.add(label);\r\nview.add(l1);\r\nview.add(l2);\r\nview.add(l3);\r\nview.add(l4);\r\nwin.add(view);\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "BlackBerry: Implement View touch events (touchstart, touchmove, touchend, touchcancel)", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.3.0.201405161313 \r\nTitanium SDK, build: 3.3.0.v20140521074112 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-alpha2 \r\nnpm@1.3.2 \r\ntitanium@3.3.0-alpha5 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)", "comment": { "comments": [ { "id": "305981", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Touch Cancel works only.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-21T20:57:28.000+0000", "updated": "2014-05-21T20:57:28.000+0000" }, { "id": "306115", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/239\r\n\r\nAs a side note, the documentation states that \"touchEnabled\" takes a boolean as parameter, not a string like on the example. Changing it to a boolean would make this ticket invalid. The PR solves this by internally casting the string to a bool and making it fool-proof", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-22T18:38:36.000+0000", "updated": "2014-05-22T18:38:36.000+0000" }, { "id": "410266", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T07:59:59.000+0000", "updated": "2017-03-09T07:59:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }