{"action":"created","issue":{"url":"https://api.github.com/repos/OwlFonk/OwlCarousel/issues/378","repository_url":"https://api.github.com/repos/OwlFonk/OwlCarousel","labels_url":"https://api.github.com/repos/OwlFonk/OwlCarousel/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/OwlFonk/OwlCarousel/issues/378/comments","events_url":"https://api.github.com/repos/OwlFonk/OwlCarousel/issues/378/events","html_url":"https://github.com/OwlFonk/OwlCarousel/issues/378","id":41594420,"number":378,"title":"Add Item without jumping back ?","user":{"login":"RM-urb","id":8607775,"avatar_url":"https://avatars.githubusercontent.com/u/8607775?v=3","gravatar_id":"","url":"https://api.github.com/users/RM-urb","html_url":"https://github.com/RM-urb","followers_url":"https://api.github.com/users/RM-urb/followers","following_url":"https://api.github.com/users/RM-urb/following{/other_user}","gists_url":"https://api.github.com/users/RM-urb/gists{/gist_id}","starred_url":"https://api.github.com/users/RM-urb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RM-urb/subscriptions","organizations_url":"https://api.github.com/users/RM-urb/orgs","repos_url":"https://api.github.com/users/RM-urb/repos","events_url":"https://api.github.com/users/RM-urb/events{/privacy}","received_events_url":"https://api.github.com/users/RM-urb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-08-31T19:48:50Z","updated_at":"2016-03-18T19:54:51Z","closed_at":null,"body":"I am creating a site where content is dynamically loaded using Ajax into OwlCarousel items, which are created as needed using the addItem() method.\r\n\r\nAs can be seen on the demo at http://owlgraphic.com/owlcarousel/demos/manipulations.html, when addItem is called, the carousel always jumps back to the first item (i.e. to the extreme left, or the first 'page'). Instead I would like it to scroll automatically to the newly created item (i.e. to the extreme right or last 'page', to show the newly-created item). Is there some way to modify the code to make this happen? It seems that as soon as addItem() is called, the carousel jumps."},"comment":{"url":"https://api.github.com/repos/OwlFonk/OwlCarousel/issues/comments/198517355","html_url":"https://github.com/OwlFonk/OwlCarousel/issues/378#issuecomment-198517355","issue_url":"https://api.github.com/repos/OwlFonk/OwlCarousel/issues/378","id":198517355,"user":{"login":"kenking1031","id":2902191,"avatar_url":"https://avatars.githubusercontent.com/u/2902191?v=3","gravatar_id":"","url":"https://api.github.com/users/kenking1031","html_url":"https://github.com/kenking1031","followers_url":"https://api.github.com/users/kenking1031/followers","following_url":"https://api.github.com/users/kenking1031/following{/other_user}","gists_url":"https://api.github.com/users/kenking1031/gists{/gist_id}","starred_url":"https://api.github.com/users/kenking1031/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenking1031/subscriptions","organizations_url":"https://api.github.com/users/kenking1031/orgs","repos_url":"https://api.github.com/users/kenking1031/repos","events_url":"https://api.github.com/users/kenking1031/events{/privacy}","received_events_url":"https://api.github.com/users/kenking1031/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T19:54:51Z","updated_at":"2016-03-18T19:54:51Z","body":"After struggling for a while, I figured out a workaround for this issue. \r\n\r\nFirst create empty placeholders for items you are going to add when initialize owl object. Then update each placeholder with content at afterAction call back. \r\n\r\nThe workaround works well when you know how many items will be added.\r\n\r\n"}}