{"action":"created","issue":{"url":"https://api.github.com/repos/brigade/react-waypoint/issues/214","repository_url":"https://api.github.com/repos/brigade/react-waypoint","labels_url":"https://api.github.com/repos/brigade/react-waypoint/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/brigade/react-waypoint/issues/214/comments","events_url":"https://api.github.com/repos/brigade/react-waypoint/issues/214/events","html_url":"https://github.com/brigade/react-waypoint/issues/214","id":257812247,"number":214,"title":"wrong value for currentPosition","user":{"login":"yenly","id":6759658,"avatar_url":"https://avatars1.githubusercontent.com/u/6759658?v=4","gravatar_id":"","url":"https://api.github.com/users/yenly","html_url":"https://github.com/yenly","followers_url":"https://api.github.com/users/yenly/followers","following_url":"https://api.github.com/users/yenly/following{/other_user}","gists_url":"https://api.github.com/users/yenly/gists{/gist_id}","starred_url":"https://api.github.com/users/yenly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenly/subscriptions","organizations_url":"https://api.github.com/users/yenly/orgs","repos_url":"https://api.github.com/users/yenly/repos","events_url":"https://api.github.com/users/yenly/events{/privacy}","received_events_url":"https://api.github.com/users/yenly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-14T18:22:09Z","updated_at":"2017-09-14T18:52:04Z","closed_at":null,"author_association":"NONE","body":"For context, I have a react component with a long article page. I added Waypoint to a containing div at the bottom called stitchedContent with the position of relative to stitch in more articles. In initial load, my div is out of viewport but the onEnter fires with currentPostion: 'inside' \r\n\r\nI turned on debug and scrolled up and down to see the changes values. I don't see currentPosition set to outside. Is this a bug? \r\n\r\nI also tried wrapping my child component with Waypoint but when it scrolls into view, it doesn't trigger onEnter."},"comment":{"url":"https://api.github.com/repos/brigade/react-waypoint/issues/comments/329575813","html_url":"https://github.com/brigade/react-waypoint/issues/214#issuecomment-329575813","issue_url":"https://api.github.com/repos/brigade/react-waypoint/issues/214","id":329575813,"user":{"login":"trotzig","id":578277,"avatar_url":"https://avatars2.githubusercontent.com/u/578277?v=4","gravatar_id":"","url":"https://api.github.com/users/trotzig","html_url":"https://github.com/trotzig","followers_url":"https://api.github.com/users/trotzig/followers","following_url":"https://api.github.com/users/trotzig/following{/other_user}","gists_url":"https://api.github.com/users/trotzig/gists{/gist_id}","starred_url":"https://api.github.com/users/trotzig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trotzig/subscriptions","organizations_url":"https://api.github.com/users/trotzig/orgs","repos_url":"https://api.github.com/users/trotzig/repos","events_url":"https://api.github.com/users/trotzig/events{/privacy}","received_events_url":"https://api.github.com/users/trotzig/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T18:52:04Z","updated_at":"2017-09-14T18:52:04Z","author_association":"MEMBER","body":"In most cases where I've seen this behavior, it's been because there's something being lazy-loaded on the page above the waypoint. One such thing could be `<img>` tags without a set height. Another could be some css being applied after the initial render. Could you share a little bit more about your setup? "}}
{"actor":{"display_login":"trotzig"}}