{"action":"created","issue":{"url":"https://api.github.com/repos/verlok/lazyload/issues/176","repository_url":"https://api.github.com/repos/verlok/lazyload","labels_url":"https://api.github.com/repos/verlok/lazyload/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/verlok/lazyload/issues/176/comments","events_url":"https://api.github.com/repos/verlok/lazyload/issues/176/events","html_url":"https://github.com/verlok/lazyload/issues/176","id":294172004,"number":176,"title":"callback_enter not firing when entering viewport","user":{"login":"podrivo","id":546221,"avatar_url":"https://avatars2.githubusercontent.com/u/546221?v=4","gravatar_id":"","url":"https://api.github.com/users/podrivo","html_url":"https://github.com/podrivo","followers_url":"https://api.github.com/users/podrivo/followers","following_url":"https://api.github.com/users/podrivo/following{/other_user}","gists_url":"https://api.github.com/users/podrivo/gists{/gist_id}","starred_url":"https://api.github.com/users/podrivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/podrivo/subscriptions","organizations_url":"https://api.github.com/users/podrivo/orgs","repos_url":"https://api.github.com/users/podrivo/repos","events_url":"https://api.github.com/users/podrivo/events{/privacy}","received_events_url":"https://api.github.com/users/podrivo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-04T05:34:36Z","updated_at":"2018-03-03T19:52:56Z","closed_at":null,"author_association":"NONE","body":"* What is happening?\r\ncallback_enter is not firing when entering viewport\r\n\r\n* What is the expected behaviour?\r\ncallback_enter should be fired only after entering viewport\r\n\r\n* Which version of LazyLoad are you using?\r\nLatest one. Just downloaded from the repo. Version is not included in the file.\r\n\r\n* In which browser(s) and browser version(s) are you experiencing the problem?\r\nChrome 64.\r\n\r\n* Could you provide the HTML, CSS and JS code you use for your images?\r\nI used the callback demo.\r\n\r\n* What are the steps to reproduce the problem?\r\nDownload the callbacks demo. Check console for logs and compare viewport size and image position.\r\n\r\nExample:\r\nViewport has only one image shown, but 2 logs for ENTERED.\r\n![captura de tela 2018-02-04 as 03 32 52](https://user-images.githubusercontent.com/546221/35774628-3d717f32-095c-11e8-8205-9c0d4615c983.png)\r\n\r\n\r\nThank you.\r\n"},"comment":{"url":"https://api.github.com/repos/verlok/lazyload/issues/comments/370174902","html_url":"https://github.com/verlok/lazyload/issues/176#issuecomment-370174902","issue_url":"https://api.github.com/repos/verlok/lazyload/issues/176","id":370174902,"user":{"login":"verlok","id":1127721,"avatar_url":"https://avatars3.githubusercontent.com/u/1127721?v=4","gravatar_id":"","url":"https://api.github.com/users/verlok","html_url":"https://github.com/verlok","followers_url":"https://api.github.com/users/verlok/followers","following_url":"https://api.github.com/users/verlok/following{/other_user}","gists_url":"https://api.github.com/users/verlok/gists{/gist_id}","starred_url":"https://api.github.com/users/verlok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/verlok/subscriptions","organizations_url":"https://api.github.com/users/verlok/orgs","repos_url":"https://api.github.com/users/verlok/repos","events_url":"https://api.github.com/users/verlok/events{/privacy}","received_events_url":"https://api.github.com/users/verlok/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T19:52:56Z","updated_at":"2018-03-03T19:52:56Z","author_association":"OWNER","body":"@podrivo it’s actually worse than I thought, I need to duplicate a lot of code actually, and I’d need to do it in both version 10 and version 8 which use two very different ways to check viewport entering. That’s why I didn’t still release the fix. The best thing you could do if you need it quick is to implement your own “viewport entering” using IntersectionObserver. "}}
{"actor":{"display_login":"verlok"}}