{ "id": "121166", "key": "TIMOB-15474", "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": "2017-07-20T18:55:31.000+0000", "created": "2013-10-14T11:46:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Android", "event" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "34869", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "121168", "key": "TIMOB-15475", "fields": { "summary": "Android: TiApp events are received out of order in a WebView", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-20T18:55:31.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": "In Android, TiApp events received are out of order.\r\n\r\nIn the given test case, there is a window that includes a WebView and a ScrollViews set on top of different regions of it. The ScrollViews receive touch events. The ScrollViews listen for the scroll event and pass those along to the WebView via Ti.App.fireEvent calls which include the current offset of the ScrollView. \r\n\r\nPlease find attached sample project to demonstrate the issue.\r\n\r\nHere are the logs of Android :\r\n{code}\r\n[DEBUG][TiAPI (12917)] Event scroll: 47\r\n[DEBUG][TiAPI (12917)] Event scroll: 224\r\n[DEBUG][TiAPI (12917)] Event scroll: 234\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 234\r\n[DEBUG][TiAPI (12917)] Event scroll: 462\r\n[DEBUG][TiAPI (12917)] Event scroll: 631\r\n[DEBUG][TiAPI (12917)] Event scroll: 771\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 771\r\n[DEBUG][TiAPI (12917)] Event scroll: 808\r\n[DEBUG][TiAPI (12917)] Event scroll: 799\r\n[DEBUG][TiAPI (12917)] Event scroll: 796\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 796\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 799\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 808\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 631\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 462\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 224\r\n[DEBUG][TiAPI (12917)] Section scroll offset: 47\r\n{code}\r\n\r\nWhereas logs of iOS :\r\n{code}\r\n[INFO] : Native ScrollView offset: 136.5\r\n[INFO] : WebView scroll offset: 136.5\r\n[INFO] : Native ScrollView offset: 136\r\n[INFO] : WebView scroll offset: 134.5\r\n[INFO] : Native ScrollView offset: 134.5\r\n[INFO] : WebView scroll offset: 134.5\r\n[INFO] : Native ScrollView offset: 134.5\r\n[INFO] : WebView scroll offset: 134.5\r\n[INFO] : Native ScrollView offset: 134\r\n[INFO] : WebView scroll offset: 134\r\n[INFO] : Native ScrollView offset: 134\r\n[INFO] : WebView scroll offset: 134\r\n[INFO] : Native ScrollView offset: 133.5\r\n[INFO] : WebView scroll offset: 133.5\r\n[INFO] : Native ScrollView offset: 133\r\n[INFO] : WebView scroll offset: 133\r\n[INFO] : Native ScrollView offset: 132.5\r\n[INFO] : WebView scroll offset: 132.5\r\n{code}\r\n\r\nNote : This works as expected on iOS. However, on Android, the events received by the web view are out of order", "attachment": [ { "id": "43152", "filename": "AndroidScrollViewWebEvents.zip", "author": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T11:46:59.000+0000", "size": 7783288, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android : TiApp events are received out of order in a webView", "creator": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.3, Android 4.1.2", "comment": { "comments": [ { "id": "424467", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate of TIMOB-15475.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T18:55:31.000+0000", "updated": "2017-07-20T18:55:31.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }