{"action":"created","issue":{"url":"https://api.github.com/repos/idiotWu/smooth-scrollbar/issues/79","repository_url":"https://api.github.com/repos/idiotWu/smooth-scrollbar","labels_url":"https://api.github.com/repos/idiotWu/smooth-scrollbar/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/idiotWu/smooth-scrollbar/issues/79/comments","events_url":"https://api.github.com/repos/idiotWu/smooth-scrollbar/issues/79/events","html_url":"https://github.com/idiotWu/smooth-scrollbar/issues/79","id":237738257,"number":79,"title":"Scrollbars not setted until first mousewheel event.","user":{"login":"zalolorzaplanes","id":25614342,"avatar_url":"https://avatars3.githubusercontent.com/u/25614342?v=3","gravatar_id":"","url":"https://api.github.com/users/zalolorzaplanes","html_url":"https://github.com/zalolorzaplanes","followers_url":"https://api.github.com/users/zalolorzaplanes/followers","following_url":"https://api.github.com/users/zalolorzaplanes/following{/other_user}","gists_url":"https://api.github.com/users/zalolorzaplanes/gists{/gist_id}","starred_url":"https://api.github.com/users/zalolorzaplanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalolorzaplanes/subscriptions","organizations_url":"https://api.github.com/users/zalolorzaplanes/orgs","repos_url":"https://api.github.com/users/zalolorzaplanes/repos","events_url":"https://api.github.com/users/zalolorzaplanes/events{/privacy}","received_events_url":"https://api.github.com/users/zalolorzaplanes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-22T05:49:23Z","updated_at":"2017-06-22T19:53:03Z","closed_at":null,"body":"\r\n## Issue Summary\r\nBrowsers tested: Chrome + Safari  in mac\r\n\r\n## Current Behavior\r\nWhen Scrollbar initalizes, the scrollbars and functions like scrollTo are not set until user scrolls. \r\n\r\n## Steps to Reproduce\r\nI have a staging here -> http://www.ssll.zalo.nyc/\r\n\r\nYou can see what I'm saying in two ways:\r\n\r\n1) Load the home (http://www.ssll.zalo.nyc/) and try to click on the arrow to scroll down. It doesn't work until you scroll a little with the mouse.\r\n\r\n2) In the console you can play with the scrollbar instance under the var Scroll. To test it you can use the function Scroll.scrollTo(0, 50, 1700); (it only works after user has been scrolled)\r\n\r\n## Online demo\r\nhttp://www.ssll.zalo.nyc/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/idiotWu/smooth-scrollbar/issues/comments/310484615","html_url":"https://github.com/idiotWu/smooth-scrollbar/issues/79#issuecomment-310484615","issue_url":"https://api.github.com/repos/idiotWu/smooth-scrollbar/issues/79","id":310484615,"user":{"login":"idiotWu","id":6022672,"avatar_url":"https://avatars2.githubusercontent.com/u/6022672?v=3","gravatar_id":"","url":"https://api.github.com/users/idiotWu","html_url":"https://github.com/idiotWu","followers_url":"https://api.github.com/users/idiotWu/followers","following_url":"https://api.github.com/users/idiotWu/following{/other_user}","gists_url":"https://api.github.com/users/idiotWu/gists{/gist_id}","starred_url":"https://api.github.com/users/idiotWu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idiotWu/subscriptions","organizations_url":"https://api.github.com/users/idiotWu/orgs","repos_url":"https://api.github.com/users/idiotWu/repos","events_url":"https://api.github.com/users/idiotWu/events{/privacy}","received_events_url":"https://api.github.com/users/idiotWu/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T19:53:02Z","updated_at":"2017-06-22T19:53:02Z","body":"So what about calling `scrollbar.update()` (synchronously) in click event\nhandler?\n2017年6月23日(金) 0:33 zalolorzaplanes <notifications@github.com>:\n\n> A) I'm using scroll.update and it doesn't work in the first load.\n>\n> B) the first load is not rendering dynamic contents, it's a plain php\n> without ajax (only some images are load asynchronously, but they replace an\n> existing low res image)\n>\n> Zalo Lorza Planes\n> US: +1 (917) 344-0475\n> ES: +34 686 513 584\n> gon@zalo.cat\n> www.zalo.cat\n>\n> El 22 juny 2017, a les 2:11 a. m., Dolphin Wood <notifications@github.com>\n> va escriure:\n> > I think this issue is due to dynamically inserted contents. I would\n> suggest you to call scrollbar.update(true) after appending contents.\n> >\n> > P.S. true will force an asynchronous update (uses requestAnimationFrame).\n> >\n> > —\n> > You are receiving this because you authored the thread.\n> > Reply to this email directly, view it on GitHub, or mute the thread.\n> >\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/idiotWu/smooth-scrollbar/issues/79#issuecomment-310416756>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AFvmEBCKzqTnPIp-28P1gWKauQatjACpks5sGolbgaJpZM4OB1fd>\n> .\n>\n-- \n\nDolphin Wood\n"}}
{"actor":{"display_login":"idiotWu"}}