{ "id": "148940", "key": "TIMOB-19044", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-22T16:38:16.000+0000", "created": "2015-06-18T22:31:21.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2015-06-24T20:46:30.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": "h5.Description\r\n\r\nWhen accessing a sliders value the value returned is always 0\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'red'});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n text: 'Value is ',\r\n color: 'black',\r\n width: 150\r\n});\r\n\r\nvar slider = Titanium.UI.createSlider({\r\n top: 80,\r\n width: '80%'\r\n});\r\n\r\n\r\nslider.addEventListener('change', function(e) {\r\n lbl.text = 'Value is ' + e.value;\r\n});\r\n\r\nlbl.addEventListener('click', function(){\r\n alert(slider.value);\r\n});\r\n\r\n\r\nwin.add(lbl);\r\nwin.add(slider);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Add the above code to an existing app.js\r\n2. Build the device or emulator\r\n3. Move the slider\r\n4. Tap the label \r\n\r\nh5.Actual Result\r\n\r\nThe value returned is 0\r\n\r\nh5.Expected Result\r\n\r\nThe value returned should match the label displaying the value\r\n", "attachment": [], "flagged": false, "summary": "Windows: Accessing a sliders value always returns 0", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nTi CLI: 4.1.0-dev\r\nTi SDK: 4.1.0.v20150617152826\r\nLumia 928: 8.1\r\nWindows Phone emulator 8-1-1", "closedSprints": [ { "id": 436, "state": "closed", "name": "2015 Sprint 13 Windows", "startDate": "2015-06-20T23:02:43.965Z", "endDate": "2015-07-04T23:02:00.000Z", "completeDate": "2015-07-06T14:03:22.174Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "355884", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nWe get the appropriate slider value.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.0.201506221807\r\nTi SDK: 4.1.0.v20150624102755\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-3 \r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-24T20:46:18.000+0000", "updated": "2015-06-24T20:46:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }