{ "id": "115272", "key": "TIMOB-14063", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-07-03T15:10:16.000+0000", "created": "2013-05-31T09:00:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Android", "Titanium", "mobilesdk" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "30044", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "61643", "key": "TIMOB-1011", "fields": { "summary": "Android: Animations Cause the location of touch events to be incorrect", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29239", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "81954", "key": "TIMOB-6304", "fields": { "summary": "Android: Button click event not working for transformation, due to handler acting on original rather than transformed location", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-24T07:12:10.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. Description\r\n\r\nAfter transforming a slider, the touch events respond at the original position rather than the position resulting from the transformation. \r\n\r\nFurther more, in the test case the slider is rotated 90 degrees, but sliding the slider returns it to the pre transformed position.\r\n\r\nh4. Sample Code\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'gray'\r\n});\r\n\r\n\r\nvar slider = Titanium.UI.createSlider({\r\n\tmin : 1,\r\n\tmax : 10\r\n});\r\n\r\nslider.addEventListener(\"change\",function(e){\r\n\talert(e.value);\r\n});\r\n\r\nslider.addEventListener(\"touchstart\",function(e){\r\n\talert(e.value);\r\n});\r\n\r\nvar t = Titanium.UI.create2DMatrix();\r\nt = t.rotate(-90);\r\nslider.setTransform(t); //if i comment this then everything is working fine in original state\r\n\r\nwin.add(slider);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh4. Steps to reproduce\r\n\r\n1: Create a sample project.\r\n2: Copy paste the above code in app.js file.\r\n3: Launch it in android device or simulator running android version 4.1.x or 4.2.\r\n4: Now you can see that if transformation is applied no event is getting fired.", "attachment": [], "flagged": false, "summary": "Android: Slider touch events respond to their original location after transformation", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK 3.1.0, 3.0.0, 3.0.2\r\nAndroid 4.2", "comment": { "comments": [ { "id": "260748", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as duplicate of linked issue. Please follow along there.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T15:10:16.000+0000", "updated": "2013-07-03T15:10:16.000+0000" }, { "id": "262948", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue can be closed. The customer implemented a work-around and they are Ok with that.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-24T07:12:10.000+0000", "updated": "2013-07-24T07:12:10.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }