{ "id": "111388", "key": "TIMOB-13109", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15274", "description": "2013 Sprint 06 API", "name": "2013 Sprint 06 API", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-19T17:43:18.000+0000", "created": "2013-03-19T06:42:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "ios", "listview", "qe-testadded", "slider" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-22T18:35:53.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Slider events have parity issues.\r\niOS fires touchstart and touchend on user initialted update but has no x and y values in the event.\r\nAndroid fires undocumented stop event when UI update finishes.\r\n\r\niOS and Android are going to implement start and stop events (which will not bubble). Obvious use case is the updateItem API in the listView which should be done in the stop event.\r\n\r\nTest Case\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : '#fff'\r\n});\r\n \r\nvar slider = Ti.UI.createSlider({\r\n min:0,\r\n max:1,value:0.5,\r\n width:'80%',\r\n});\r\n\r\nfunction handler(e){\r\n Ti.API.info(e.type+' '+e.value+' '+e.bubbles);\r\n}\r\n\r\nslider.addEventListener('start',handler);\r\nslider.addEventListener('change',handler);\r\nslider.addEventListener('stop',handler);\r\n\r\nwin.add(slider);\r\n \r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Slider Events Parity", "creator": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "242861", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3988", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T06:48:27.000+0000", "updated": "2013-03-19T06:48:27.000+0000" }, { "id": "242945", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR & FR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T17:43:18.000+0000", "updated": "2013-03-19T17:43:18.000+0000" }, { "id": "244754", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified implemented with the following configuration:\r\nMac OS 10.8.3\r\nSDK: 3.1.0.v20130329175112\r\nTitanium Studio, build: 3.1.0.201303261815\r\nCLI 3.0.25-alpha\r\nnode-appc 1.0.29-alpha\r\n\r\niPhone 5 iOS 6.0\r\n\r\nNexus 4 OS 4.2.1\r\n\r\nOne question is the ordering of events on the iOS side. I was not expecting the following sequence:\r\n\r\nChange -> start -> many changes -> stop.\r\n\r\nOn Android it's simply start -> changes -> stop. Is this expected?\r\n\r\nHere is additional info:\r\nAndroid:\r\n{code}\r\nI/TiAPI (23601): start 0.5 false\r\nI/TiAPI (23601): change 0.5400000214576721 true\r\nI/TiAPI (23601): change 0.550000011920929 true\r\nI/TiAPI (23601): change 0.5600000023841858 true\r\nI/TiAPI (23601): change 0.5699999928474426 true\r\nI/TiAPI (23601): change 0.5799999833106995 true\r\nI/TiAPI (23601): change 0.5899999737739563 true\r\nI/TiAPI (23601): change 0.6000000238418579 true\r\nI/TiAPI (23601): change 0.6100000143051147 true\r\nI/TiAPI (23601): change 0.6200000047683716 true\r\nI/TiAPI (23601): change 0.6299999952316284 true\r\nI/TiAPI (23601): change 0.6399999856948853 true\r\nI/TiAPI (23601): change 0.6499999761581421 true\r\nI/TiAPI (23601): change 0.6600000262260437 true\r\nI/TiAPI (23601): stop 0.6600000262260437 false\r\n{code}\r\n\r\niOS: Note the first event\r\n{code}\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.41416308283805847 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] start 0.41416308283805847 false\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.42489269375801086 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.42918455600738525 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.43562230467796326 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.44206008315086365 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.45064377784729004 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.45708155632019043 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.46566522121429443 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.4742489159107208 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.4806866943836212 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.4892703890800476 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.495708167552948 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5021459460258484 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.508583664894104 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5150214433670044 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5214592218399048 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5257510542869568 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5300429463386536 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5321888327598572 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5343347787857056 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5364806652069092 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.540772557258606 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5429184436798096 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5472102761268616 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5515021681785583 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.557939887046814 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5643776655197144 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5729613900184631 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5815450549125671 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5901287794113159 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.5987124443054199 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6051502227783203 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6158798336982727 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6223176121711731 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6309012770652771 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6373390555381775 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6416308879852295 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6437768340110779 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6459227204322815 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6480686664581299 true\r\n��Mar 30 10:28:21 Titan timob13109[771] : [INFO] change 0.6502146124839783 true\r\n��Mar 30 10:28:22 Titan timob13109[771] : [INFO] change 0.6523604989051819 true\r\n��Mar 30 10:28:22 Titan timob13109[771] : [INFO] stop 0.6523604989051819 false\r\n{code}\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-30T17:30:15.000+0000", "updated": "2013-03-30T17:31:13.000+0000" }, { "id": "244885", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Its just iOS notifying us of a change in value before notifying us that UI interaction has started. Nothing to do with our implementation. Expected behavior.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T14:30:17.000+0000", "updated": "2013-04-01T14:30:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }