{"action":"created","issue":{"url":"https://api.github.com/repos/mpetroff/pannellum/issues/658","repository_url":"https://api.github.com/repos/mpetroff/pannellum","labels_url":"https://api.github.com/repos/mpetroff/pannellum/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/mpetroff/pannellum/issues/658/comments","events_url":"https://api.github.com/repos/mpetroff/pannellum/issues/658/events","html_url":"https://github.com/mpetroff/pannellum/issues/658","id":362448263,"node_id":"MDU6SXNzdWUzNjI0NDgyNjM=","number":658,"title":"lookAt() callback sometimes not working.","user":{"login":"ahmadfaridulazmi","id":6600959,"node_id":"MDQ6VXNlcjY2MDA5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/6600959?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmadfaridulazmi","html_url":"https://github.com/ahmadfaridulazmi","followers_url":"https://api.github.com/users/ahmadfaridulazmi/followers","following_url":"https://api.github.com/users/ahmadfaridulazmi/following{/other_user}","gists_url":"https://api.github.com/users/ahmadfaridulazmi/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadfaridulazmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadfaridulazmi/subscriptions","organizations_url":"https://api.github.com/users/ahmadfaridulazmi/orgs","repos_url":"https://api.github.com/users/ahmadfaridulazmi/repos","events_url":"https://api.github.com/users/ahmadfaridulazmi/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadfaridulazmi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T04:03:43Z","updated_at":"2018-10-04T00:02:50Z","closed_at":null,"author_association":"NONE","body":"On every hotspots _clickHandlerFunc_ i placed a function called _areaSpot_ and expect to call _changeImage_ after the animation finish on _view.lookAt()_\r\n\r\n```\r\nfunction areaSpot(hotSpotDiv, args) [{](url)\r\n            let json_string = args.replace(/&quot;/g, '\"');\r\n            let object = jQuery.parseJSON(json_string);\r\n            let pitch = Number(object.label_pitch);\r\n            let yaw = Number(object.label_yaw);\r\n            let section_id = Number(object.next_section_id);\r\n            view.lookAt(pitch, yaw, 50, 1000, changeImage, section_id);\r\n        }\r\n```\r\n```\r\nfunction changeImage(section_id){\r\n        let next_section_id = String(section_id);\r\n        window.location.href = '/landscape/<%= params[:id] %>/tour?section=' + next_section_id;\r\n    }\r\n```\r\nWell the function works. But sometimes after the animation finished, it does not do anything. \r\nI tried placing log between the _changeImage_ but nothing showed up (when failing). I assume it has to do with the loookAt callback function. \r\n\r\nSo when that happen, i have to click the hotspot again to make it working. "},"comment":{"url":"https://api.github.com/repos/mpetroff/pannellum/issues/comments/426842438","html_url":"https://github.com/mpetroff/pannellum/issues/658#issuecomment-426842438","issue_url":"https://api.github.com/repos/mpetroff/pannellum/issues/658","id":426842438,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjg0MjQzOA==","user":{"login":"mpetroff","id":1450212,"node_id":"MDQ6VXNlcjE0NTAyMTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1450212?v=4","gravatar_id":"","url":"https://api.github.com/users/mpetroff","html_url":"https://github.com/mpetroff","followers_url":"https://api.github.com/users/mpetroff/followers","following_url":"https://api.github.com/users/mpetroff/following{/other_user}","gists_url":"https://api.github.com/users/mpetroff/gists{/gist_id}","starred_url":"https://api.github.com/users/mpetroff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpetroff/subscriptions","organizations_url":"https://api.github.com/users/mpetroff/orgs","repos_url":"https://api.github.com/users/mpetroff/repos","events_url":"https://api.github.com/users/mpetroff/events{/privacy}","received_events_url":"https://api.github.com/users/mpetroff/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T00:02:50Z","updated_at":"2018-10-04T00:02:50Z","author_association":"OWNER","body":"Do you have a link to an example that shows this behavior? I have been unable to reproduce the issue."}}
{"actor":{"display_login":"mpetroff"}}