{ "id": "98957", "key": "TIMOB-10373", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "94534", "key": "TIMOB-9903", "fields": { "summary": "Ti API: Platforms need to achieve parity for the event system", "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": "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": [], "resolution": null, "resolutiondate": null, "created": "2012-08-09T12:21:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "23406", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "103888", "key": "TIMOB-11573", "fields": { "summary": "Ti API: iOS 'focus' event on window is not called after resume", "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 } } } }, { "id": "23405", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103888", "key": "TIMOB-11573", "fields": { "summary": "Ti API: iOS 'focus' event on window is not called after resume", "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": null, "updated": "2018-02-28T20:03:24.000+0000", "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" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Many times, a single stimulus (Such as a user pressing a finger on the screen, then lifting said finger) can trigger multiple events. Which events, and the sequence of these events need to be addressed for parity.\r\n\r\nBEHAVIOR:\r\n\r\nGiven two events that bubble, A and B, and a view hierarchy where events to view1 bubble to view2:\r\n*Events A and B will be processed in the same order in view1 as in view2. That is, for view1, A then B, then for view2, A then B.\r\n* Because of rules of bubbling, event A for view1 will happen before A for view2, and event B for view1 will happen before B for view2.\r\n* Because of rules of bubbling, event A does not affect event B. For example, if A's bubbling is cancelled, B will continue to bubble.\r\n* However, the behavior between the views and different events are undefined. Both are valid sequences:\r\n*# View1 A, View1 B, View2 A, View2 B.\r\n*# View1 A, View2 A, View1 B, View2 B.\r\n\r\nAction items:\r\n# Enumerate all situations where multiple events are called\r\n#* Eg, Click and tap, focus and open\r\n# For each, determine sequence that should happen\r\n# For each sequence, generate subtasks to implement on respective OSes.", "attachment": [ { "id": "30638", "filename": "windowFSM.png", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T15:19:27.000+0000", "size": 93518, "mimeType": "image/png" } ], "flagged": false, "summary": "TiAPI: event system: Event ordering", "creator": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "214598", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Situations where multiple events are called:\r\n# Focus, blur, open, close: Window and tab Lifecycle events\r\n# Focus and blur for textfields: Keyboard/trackpad events\r\n# Click, tap, touchup, touchdown, swipe: touch events\r\n", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T11:28:44.000+0000", "updated": "2012-08-15T11:28:44.000+0000" }, { "id": "215452", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added proposal for window and tab lifecycle events. Will need to determine where blur/focus happen, and possibly propose a third pair to represent the other case.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T15:29:20.000+0000", "updated": "2012-08-21T15:29:20.000+0000" }, { "id": "215951", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Arch meeting notes: Window FSM agreed upon for open/close, and focus/blur for when a window is the primary receptor of user events (THIS IS A BEHAVIOR CHANGE). Action item for Blain was to propose a name for the event pair in the middle.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T19:31:13.000+0000", "updated": "2012-08-23T19:31:13.000+0000" }, { "id": "216365", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Text fields: Blur on old field happens before focus on new field. This happens in the same action at the OS level.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-27T18:07:56.000+0000", "updated": "2012-08-27T18:07:56.000+0000" }, { "id": "230248", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue should address the issue raised in TIMOB-11573.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T18:37:00.000+0000", "updated": "2012-12-06T18:37:00.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }