{"action":"closed","issue":{"url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/136","labels_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/136/comments","events_url":"https://api.github.com/repos/sachinchoolur/lightGallery/issues/136/events","html_url":"https://github.com/sachinchoolur/lightGallery/issues/136","id":92178123,"number":136,"title":"Bug: thumbs div stays static (does not animate) when auto is set and when using dynamicEl.","user":{"login":"steveunit","id":3485762,"avatar_url":"https://avatars.githubusercontent.com/u/3485762?v=3","gravatar_id":"","url":"https://api.github.com/users/steveunit","html_url":"https://github.com/steveunit","followers_url":"https://api.github.com/users/steveunit/followers","following_url":"https://api.github.com/users/steveunit/following{/other_user}","gists_url":"https://api.github.com/users/steveunit/gists{/gist_id}","starred_url":"https://api.github.com/users/steveunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveunit/subscriptions","organizations_url":"https://api.github.com/users/steveunit/orgs","repos_url":"https://api.github.com/users/steveunit/repos","events_url":"https://api.github.com/users/steveunit/events{/privacy}","received_events_url":"https://api.github.com/users/steveunit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T19:22:17Z","updated_at":"2015-08-26T09:45:11Z","closed_at":"2015-08-26T09:45:11Z","body":"Only discovered this when I added more images than can fit in the browser window.\r\n\r\nNow, if I set auto (play) and start LightGallery on the 10th image, it will load with the 10th thumb close to the centre. The next thumb is highlighted when the next image is called, but the thumbs row stays static, until the thumb for the current image can't be seen because it is beyond the right edge of the browser window.\r\n\r\nI fixed this by adding the following code to the end of the slide function, on or around line 750.\r\n\r\n    if ($gallery.hasClass('open')) {\r\n        $this.animateThumb(index);\r\n    }\r\n\r\nI am passing an index to LightGallery for the start image.\r\n\r\nIs there a better fix?\r\n\r\nThanks for the plugin."}}