{"action":"opened","issue":{"url":"https://api.github.com/repos/webglearth/webglearth2/issues/79","repository_url":"https://api.github.com/repos/webglearth/webglearth2","labels_url":"https://api.github.com/repos/webglearth/webglearth2/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/webglearth/webglearth2/issues/79/comments","events_url":"https://api.github.com/repos/webglearth/webglearth2/issues/79/events","html_url":"https://github.com/webglearth/webglearth2/issues/79","id":173487355,"number":79,"title":"WebGL earth sizing problem","user":{"login":"kingmaryjonatan","id":17175788,"avatar_url":"https://avatars.githubusercontent.com/u/17175788?v=3","gravatar_id":"","url":"https://api.github.com/users/kingmaryjonatan","html_url":"https://github.com/kingmaryjonatan","followers_url":"https://api.github.com/users/kingmaryjonatan/followers","following_url":"https://api.github.com/users/kingmaryjonatan/following{/other_user}","gists_url":"https://api.github.com/users/kingmaryjonatan/gists{/gist_id}","starred_url":"https://api.github.com/users/kingmaryjonatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingmaryjonatan/subscriptions","organizations_url":"https://api.github.com/users/kingmaryjonatan/orgs","repos_url":"https://api.github.com/users/kingmaryjonatan/repos","events_url":"https://api.github.com/users/kingmaryjonatan/events{/privacy}","received_events_url":"https://api.github.com/users/kingmaryjonatan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-26T16:02:38Z","updated_at":"2016-08-26T16:02:38Z","closed_at":null,"body":"Hello,\r\n\r\nSo i am lazyloading my \"world.js\" (the WebGl Earth dependency). When finally loaded i initiate the map (great) and it works like 9.5 / 10 times 100%.\r\n\r\nSometimes the Canvas is fullwidth but the WebGL context isn't updated so i got a 1px/1px WebGL context that's trying to spin a globe and DDOS maptiles constantly bringin the browser to crash or halt.\r\n\r\nSo to fix that i have to run\r\n\r\n<FOUND THAT THE CANVAS WIDTH IS 0>\r\n(timer 100ms)\r\nforcedPaused = true;\r\n(timer 100ms)\r\nhandleResize();\r\n(timer 100ms)\r\nforcePaused = false;\r\n</FOUND THAT THE CANVAS WIDTH IS 0>\r\n\r\nAnd this i have to run twice for it to update correctly..\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"kingmaryjonatan"}}