{ "id": "92853", "key": "TIMOB-9405", "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": "2012-08-13T17:00:16.000+0000", "created": "2012-06-05T15:38:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "parity", "qe-3.1.1" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "19876", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "98044", "key": "TIMOB-10153", "fields": { "summary": "Android: Button: Touchend event not fired when touchmove gesture moves out of button", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-21T22:42:42.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": "h2. Problem description\r\nOn Android, slider \"touchend\" events are not triggered if the finger is released from the screen when it's no longer on the picker\r\n\r\nh2. Expected results\r\nThe alert being shown on touchend event. \r\n\r\nh3. Actual Results\r\nIn SDK 2.1.1 it's working fine in Android 2.2.2, but failing to provide the alert in Android OS 4.1\r\n\r\nh2. Sample code\r\n\r\nRun the sample code below.\r\nStart moving the slider and release the finger when the finger is still on top of the slider.\r\nResult: alert it's being displayed\r\n\r\nMove the slider again and release the finger when the finger it's no longer on top of the slider\r\nResult: event it's not triggered and alert it's not displayed.\r\n\r\nIt's only reproducible on Android OS. On iOS platform works as expected.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n title:'test',\r\n backgroundColor:'white'\r\n});\r\n\r\n//\r\n// BASIC SLIDER\r\n//\r\nvar basicSliderLabel = Titanium.UI.createLabel({\r\n text:'Basic Slider',\r\n color:'#999',\r\n font:{\r\n fontFamily:'Helvetica Neue',\r\n fontSize:15\r\n },\r\n textAlign:'center',\r\n top:10,\r\n width:300,\r\n height:'auto'\r\n});\r\n\r\nvar basicSlider = Titanium.UI.createSlider({\r\n min:0,\r\n max:10,\r\n value:5,\r\n width:200,\r\n height:Ti.UI.SIZE,\r\n top:50,\r\n // selectedThumbImage:'../images/slider_thumb.png',\r\n // highlightedThumbImage:'../images/chat.png'\r\n});\r\nbasicSlider.addEventListener('change',function(e)\r\n{\r\n basicSliderLabel.text = 'Basic Slider';\r\n});\r\n// For #806\r\nbasicSlider.addEventListener('touchstart', function(e)\r\n{\r\n Ti.API.info('#### Touch started: ');\r\n});\r\nbasicSlider.addEventListener('touchend', function(e)\r\n{\r\n Ti.API.info('#### Touch ended: ');\r\n alert('Touch ended')\r\n});\r\nbasicSlider.value = 0; \r\n\r\n\r\n\r\nwin.add(basicSliderLabel);\r\nwin.add(basicSlider);\r\nTi.API.info('platform = ' + Titanium.Platform.osname);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Simpler Test Case \r\n{code}\r\nvar win=Titanium.UI.createWindow({backgroundColor:'#FFFFFF'});\r\nvar slider1 = Ti.UI.createSlider({\r\n top : 25,\r\n value : 30,//_params.value,\r\n min : 0,//_params.min,\r\n max : 65, //_params.max,\r\n left:0,\r\n width:'65%'\r\n });\r\nslider1.addEventListener('touchend',function(e){\r\n alert(e.value)\r\n});\r\nwin.add(slider1);\r\nwin.open(); \r\n{code}\r\n\r\nh2. Additional notes / Discussion \r\nTicket link: http://support-admin.appcelerator.com/display/APP-933556/conversation/read_all\r\n\r\nh2. Extra comments\r\nThis is failing in some devices, like:\r\n\r\nDeviceS: Motorola MB860 (OS ver 2.3.4) - FAILING.\r\nDevices: Google Nexus Tablet 7 OS Ver 4.1 - FAILING \r\n ", "attachment": [], "flagged": false, "summary": "Android: slider 'touchEnd' event it's not always fired", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK tested 1.8.2 - 2.0 - 2.1 latest CI, 2.1.1.GA\r\nAndroid OS 2.2.2, 4.1\r\nDeviceS: Motorola MB860 (OS ver 2.3.4) - FAILING.\r\nDevices: Google Nexus Tablet 7 OS Ver 4.1 - FAILING \r\nMac OS X 10.7.3", "comment": { "comments": [ { "id": "253289", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appcelerator Studio, build: 3.1.1.201305181057\nSDK, billd: 3.1.1.v20130520171545\nDevices:\nNexus 7 Android version: 4.2\nGalaxyS3 Android version: 4.0.4\n\nActual result:\n{code}\n05-21 15:40:16.107: I/TiAPI(14022): Touch started: undefined\n05-21 15:40:17.087: I/TiAPI(14022): Touch ended: undefined\n05-21 15:40:18.947: I/TiAPI(14022): Touch started: undefined\n05-21 15:40:19.317: I/TiAPI(14022): Touch ended: undefined\n05-21 15:40:21.077: I/TiAPI(14022): Touch started: undefined\n05-21 15:40:21.227: I/TiAPI(14022): Touch ended: undefined\n{code}\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-21T22:42:15.000+0000", "updated": "2013-05-21T22:42:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }