{ "id": "150659", "key": "TIMOB-19401", "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": "16778", "description": "Release 5.0.1", "name": "Release 5.0.1", "archived": false, "released": true, "releaseDate": "2015-09-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-17T22:59:20.000+0000", "created": "2015-08-25T01:56:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "48774", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "150000", "key": "TIMOB-19286", "fields": { "summary": "Windows: Test Movies sample", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "48971", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "151137", "key": "TIMOB-19502", "fields": { "summary": "Windows: wrong behavior for touch 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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-09-22T19:34:23.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Missing events for {{Ti.UI.View}}, such as {{click}}, {{singletap}}, {{swipe}} and so on. Currently it only supports {{touchmove}} and {{focus}}.", "attachment": [], "flagged": false, "summary": "Windows: Missing events for Ti.UI.View", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 482, "state": "closed", "name": "2015 Sprint 17 Windows", "startDate": "2015-08-15T04:01:00.000Z", "endDate": "2015-08-29T03:59:00.000Z", "completeDate": "2015-08-28T13:51:24.221Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "361189", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/417", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-26T02:27:43.000+0000", "updated": "2015-08-26T02:27:43.000+0000" }, { "id": "363643", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Reopening ticket:\r\n\r\nWindows 8.1\r\nAppc CLI Core: 5.0.0-50\r\nAppc CLI NPM: 4.2.0-1\r\nTitanium SDK : 5.0.0.v20150911123911\r\nLumia 930 (8.1)\r\n\r\nWhen using the below code I do not see events get fired for for *touchstart* and *touchend* and the behaviour for *longpress* differs to Android and iOS. On Windows when listening for the *longpress* event the callback will be called twice, when the duration for a longpress is met and when the press is released, on iOS and Android a longpress is only fired once, when the length of time is met.\r\n\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'blue' });\r\n\r\nvar lpview = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: 100, height:100,\r\n top: 10\r\n});\r\n\r\n\r\nlpview.addEventListener('longpress', function(e){\r\n\tconsole.log('You longpressed me!');\r\n\tconsole.log(JSON.stringify(e));\r\n});\r\n\r\nvar touchview = Ti.UI.createView({\r\n backgroundColor: 'purple',\r\n width: 100, height:100,\r\n top: 150\r\n});\r\n\r\n\r\ntouchview.addEventListener('touchstart', function(e){\r\n\tconsole.log('You touchstart me!');\r\n\tconsole.log(JSON.stringify(e));\r\n});\r\n\r\ntouchview.addEventListener('touchend', function(e){\r\n\tconsole.log('You touchend me!');\r\n\tconsole.log(JSON.stringify(e));\r\n});\r\n\r\nwin.add(lpview);\r\nwin.add(touchview);\r\n\r\nwin.open()\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-09-11T22:47:12.000+0000", "updated": "2015-09-11T22:47:12.000+0000" }, { "id": "364261", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-17T22:59:20.000+0000", "updated": "2015-09-17T22:59:20.000+0000" }, { "id": "364689", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 8.1\r\nAppc Core 5.0.2-19\r\nAppc NPM 4.2.0\r\nTi SDK 5.0.1.v20150922104152\r\nNokia Lumia 930 8.1\r\n\r\nUsing the code below the touchstart and touchend events are now fired and the longpress event is only fired once\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'blue' });\r\n \r\nvar lpview = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: 100, height:100,\r\n top: 10\r\n});\r\n \r\n \r\nlpview.addEventListener('longpress', function(e){\r\n\tconsole.log('You longpressed me!');\r\n\tconsole.log(JSON.stringify(e));\r\n});\r\n \r\nvar touchview = Ti.UI.createView({\r\n backgroundColor: 'purple',\r\n width: 100, height:100,\r\n top: 150\r\n});\r\n \r\n \r\ntouchview.addEventListener('touchstart', function(e){\r\n\tconsole.log('You touchstart me!');\r\n\tconsole.log(JSON.stringify(e));\r\n});\r\n \r\ntouchview.addEventListener('touchend', function(e){\r\n\tconsole.log('You touchend me!');\r\n\tconsole.log(JSON.stringify(e));\r\n});\r\n \r\nwin.add(lpview);\r\nwin.add(touchview);\r\n \r\nwin.open()\r\n\r\n{code}\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-09-22T19:34:16.000+0000", "updated": "2015-09-22T19:34:16.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }