{ "id": "79187", "key": "TIMOB-5225", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-09T17:07:51.000+0000", "created": "2011-08-12T07:40:58.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-09T17:07:51.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": "When the *change* event is fired on a Slider, the *x*, *y*, and *globalPoint* properties are being returned as undefined. Here is a simple example showing the bug, as well as a naive workaround that will allow you to ascertain the relative *x* position of the Slider using its width and current value. Obviously, this workaround only works with a slider whose range is from 0 to 1, but a more robust workaround could use the min and max ranges to create a 0 to 1 multiplier. \r\n\r\n{code:javascript|title=app.js}\r\nvar win = Ti.UI.createWindow();\r\nvar slider = Ti.UI.createSlider();\r\nslider.addEventListener('change', function(e) {\r\n\tTi.API.info(\"x:\" + e.x + \" -- y:\" + e.y + \" -- globalPoint:\" + e.globalPoint);\r\n\tTi.API.info(\"calculated x:\" + e.source.width * e.source.value);\r\n});\r\nwin.add(slider);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Slider change event object properties {x,y,globalPoint} are undefined", "creator": { "name": "tonylukasavage", "key": "tonylukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tonylukasavage", "key": "tonylukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium 1.7.2 07/21/11 09:36 97c3689\r\n* iOS 4.3\r\n* iPhone Sim\r\n* Mac OSX 10.7\r\n* Titanium Studio 1.0.4.201108101535", "comment": { "comments": [ { "id": "170032", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Reassigning tickets, as per Tony Guntharp's request", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-10-21T07:32:20.000+0000", "updated": "2011-10-21T07:32:20.000+0000" }, { "id": "421653", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed, any problems please open a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T17:07:51.000+0000", "updated": "2017-06-09T17:07:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }