{ "id": "115190", "key": "TIMOB-14065", "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": null, "resolutiondate": null, "created": "2013-05-30T15:16:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "mobile", "reprod", "slider" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:21.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Problem*\r\nWhen a 'change' event is added to a slider like this:\r\n\r\n{code:javascript}\r\nvar win1 = Titanium.UI.createWindow({\r\n\tbackgroundColor: 'gray'\r\n});\r\n\r\nvar slider = Titanium.UI.createSlider({\r\n top: 50,\r\n min: 0,\r\n max: 100,\r\n width: '100%',\r\n value: 50\r\n });\r\n\r\nslider.addEventListener('change', onSliderChange)\r\n\r\nfunction onSliderChange() {\r\n\t\r\n\talert('Slider says: Hello World!')\r\n}\r\n\r\nwin1.add(slider);\r\nwin1.open();\r\n\r\n{code}\r\n\r\nWhile I believe that it makes sense in some cases, in others, it's a problem.\r\n\r\nIn my particular case, if the callback is launched when the window opens, it causes a problem because it should be fired only when *the user* moves the slider.\r\n\r\nI don't know what you think of this but I believe it makes more sense that the 'change' event is not fired when the slider is simply added to the view.", "attachment": [ { "id": "39293", "filename": "Archive.zip", "author": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-31T07:59:31.000+0000", "size": 3683648, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Slider fires 'change' event when it is laid out", "creator": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested in iphone simulator and Android device (HTC Sensation, ICS v4.0.3)\r\nTitanium SDK 3.1\r\n\r\nAndroid 4.1.2\r\nTi SDK 3.2 CI\r\nTitanium Studio, build: 3.1.0.201303032333\r\n", "comment": { "comments": [ { "id": "254865", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Kevin,\n\nThanks for bringing this to our attention. Would you mind providing a full test case of this issue? In order to review a bug we require a test case which can easily be added into an app.js or alloy project which displays the bug at hand. This is pertinent because it ensures a speedy review and that the problem is understood between everyone involved. Once you have provided the test case I will look into this further. For future reference: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report \n\nThank you for your cooperation,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T16:44:12.000+0000", "updated": "2013-05-30T16:44:12.000+0000" }, { "id": "255130", "author": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "body": "app folder and tiapp.xml for test case. (This is an Alloy project)", "updateAuthor": { "name": "aodev", "key": "aodev", "displayName": "Kevin Purnelle", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-31T07:59:31.000+0000", "updated": "2013-05-31T07:59:31.000+0000" }, { "id": "255203", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Kevin, \n\nI couldn't get your project to work, I just made my own test case to show the issue. This is indeed a bug (or at least questionable behavior). Tested and confirmed with Android 4.1.2 on Ti SDK 3.2 CI. Moving to Ti-Mobile for engineering to review.\n\nThanks for bringing this to our attention. \n\nRegards,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-31T17:55:33.000+0000", "updated": "2013-05-31T17:55:33.000+0000" }, { "id": "273749", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Just make sure to ignore any slider change events prior to the first touchstart event and it's OK.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-10-03T16:53:57.000+0000", "updated": "2013-10-03T16:53:57.000+0000" }, { "id": "424309", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-18T18:23:29.000+0000", "updated": "2017-07-18T18:23:29.000+0000" }, { "id": "433509", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I feel like this bug could use some attention. Right now when a slider is implemented with a pre-defined value a workaround is needed.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-23T12:13:57.000+0000", "updated": "2018-01-23T12:13:57.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }