{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/7941","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/7941/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/7941/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/7941/events","html_url":"https://github.com/facebook/react-native/issues/7941","id":158589785,"number":7941,"title":"0.26 regression: touch events are lost when the component under the finger goes away","user":{"login":"alangpierce","id":211605,"avatar_url":"https://avatars.githubusercontent.com/u/211605?v=3","gravatar_id":"","url":"https://api.github.com/users/alangpierce","html_url":"https://github.com/alangpierce","followers_url":"https://api.github.com/users/alangpierce/followers","following_url":"https://api.github.com/users/alangpierce/following{/other_user}","gists_url":"https://api.github.com/users/alangpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/alangpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alangpierce/subscriptions","organizations_url":"https://api.github.com/users/alangpierce/orgs","repos_url":"https://api.github.com/users/alangpierce/repos","events_url":"https://api.github.com/users/alangpierce/events{/privacy}","received_events_url":"https://api.github.com/users/alangpierce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T02:20:18Z","updated_at":"2016-06-09T01:18:26Z","closed_at":null,"body":"I have an app I'm working on that involves dragging UI components around, and when I upgraded to React Native 0.26.3 and React 15.0.2, dragging stopped working. More specifically, any time you \"pick up\" a draggable component, it seems to immediately lose focus, and you have to release your finger and tap your finger down again to actually drag the component.\r\n\r\nThe interesting thing about my app is that the component directly under the finger is removed from the view hierarchy while dragging. (In its place, I draw a similar-looking component elsewhere in the view hierarchy that follows the finger.) But I'm handling all touch events through a top-level component that is mounted for the duration of the gesture, so I would expect to receive all touch events.\r\n\r\nI think I tracked the problem down to this commit (although I'm not sure about the implications of just reverting it): https://github.com/facebook/react/commit/69b6869a3e6861b325ca2e9bb2d938cb81c7a090\r\n\r\nHere's a small sample app demonstrating the problem on both Android and iOS:\r\nhttps://github.com/alangpierce/DragBugDemo/blob/master/app.js\r\n\r\nHere's the correct behavior on React Native 0.25.1 and React 0.14.5 (at least, I think it's correct):\r\n<img src=\"https://cloud.githubusercontent.com/assets/211605/15810011/b07e6776-2b4e-11e6-9568-bff46c0fc88c.gif\" width=300>\r\n\r\nAnd here's the incorrect behavior on React Native 0.26.3 and React 15.0.2:\r\n<img src=\"https://cloud.githubusercontent.com/assets/211605/15810022/c617b056-2b4e-11e6-8bd2-7613920a8b7d.gif\" width=300>\r\n\r\nI intentionally give the `dragging` and `notdragging` components different keys so that the `notdragging` component is removed from the view hierarchy while dragging. In the 0.26.3 version, all touch events after the first are lost for gestures that start with the finger over the `notdragging` component (even though that component doesn't handle any touch events itself)."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/224777455","html_url":"https://github.com/facebook/react-native/issues/7941#issuecomment-224777455","issue_url":"https://api.github.com/repos/facebook/react-native/issues/7941","id":224777455,"user":{"login":"PyYoshi","id":467255,"avatar_url":"https://avatars.githubusercontent.com/u/467255?v=3","gravatar_id":"","url":"https://api.github.com/users/PyYoshi","html_url":"https://github.com/PyYoshi","followers_url":"https://api.github.com/users/PyYoshi/followers","following_url":"https://api.github.com/users/PyYoshi/following{/other_user}","gists_url":"https://api.github.com/users/PyYoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/PyYoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyYoshi/subscriptions","organizations_url":"https://api.github.com/users/PyYoshi/orgs","repos_url":"https://api.github.com/users/PyYoshi/repos","events_url":"https://api.github.com/users/PyYoshi/events{/privacy}","received_events_url":"https://api.github.com/users/PyYoshi/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T01:18:26Z","updated_at":"2016-06-09T01:18:26Z","body":"same issue :cry:\r\n\r\nI downgraded RN version to 0.25.1 too."}}
{"actor":{"display_login":"PyYoshi"}}