{"action":"created","issue":{"url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/329","repository_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler","labels_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/329/comments","events_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/329/events","html_url":"https://github.com/kmagiera/react-native-gesture-handler/issues/329","id":377881448,"node_id":"MDU6SXNzdWUzNzc4ODE0NDg=","number":329,"title":"PanGestureHandler - activeOffsetY does not work (v1.0.9)","user":{"login":"dsznajder","id":17621507,"node_id":"MDQ6VXNlcjE3NjIxNTA3","avatar_url":"https://avatars0.githubusercontent.com/u/17621507?v=4","gravatar_id":"","url":"https://api.github.com/users/dsznajder","html_url":"https://github.com/dsznajder","followers_url":"https://api.github.com/users/dsznajder/followers","following_url":"https://api.github.com/users/dsznajder/following{/other_user}","gists_url":"https://api.github.com/users/dsznajder/gists{/gist_id}","starred_url":"https://api.github.com/users/dsznajder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsznajder/subscriptions","organizations_url":"https://api.github.com/users/dsznajder/orgs","repos_url":"https://api.github.com/users/dsznajder/repos","events_url":"https://api.github.com/users/dsznajder/events{/privacy}","received_events_url":"https://api.github.com/users/dsznajder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-06T14:52:15Z","updated_at":"2018-11-07T10:00:17Z","closed_at":null,"author_association":"NONE","body":"```js\r\nconst ACTIVATION_RANGE = [-10, 10];\r\n\r\n<PanGestureHandler\r\n    activeOffsetX={ACTIVATION_RANGE}\r\n    activeOffsetY={ACTIVATION_RANGE}\r\n    onGestureEvent={this.handlePan}\r\n    onHandlerStateChange={this.handlePanStateChange}\r\n    ref={this.panRef}\r\n    simultaneousHandlers={this.longPressRef}\r\n>\r\n```\r\n\r\n```js\r\ncond(eq(state, GestureState.ACTIVE), [\r\n    call([this.X], this.handleHorizontalChange),\r\n    call([this.Y], this.throttleHandleVerticalChange),\r\n])\r\n```\r\n\r\nWith this code, after update to 1.0.9, `activeOffsetY` stopped changing state to Active.\r\n\r\nP.S.\r\nWorks with 1.0.8.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/comments/436569930","html_url":"https://github.com/kmagiera/react-native-gesture-handler/issues/329#issuecomment-436569930","issue_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/329","id":436569930,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjU2OTkzMA==","user":{"login":"meros","id":450310,"node_id":"MDQ6VXNlcjQ1MDMxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/450310?v=4","gravatar_id":"","url":"https://api.github.com/users/meros","html_url":"https://github.com/meros","followers_url":"https://api.github.com/users/meros/followers","following_url":"https://api.github.com/users/meros/following{/other_user}","gists_url":"https://api.github.com/users/meros/gists{/gist_id}","starred_url":"https://api.github.com/users/meros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meros/subscriptions","organizations_url":"https://api.github.com/users/meros/orgs","repos_url":"https://api.github.com/users/meros/repos","events_url":"https://api.github.com/users/meros/events{/privacy}","received_events_url":"https://api.github.com/users/meros/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T10:00:17Z","updated_at":"2018-11-07T10:00:17Z","author_association":"NONE","body":"I have the same problem. The error is in RNPanHandler.m where _activeOffsetYStart etc are tested against trans.x"}}
{"actor":{"display_login":"meros"}}