{"action":"created","issue":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1182","labels_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1182/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1182/comments","events_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1182/events","html_url":"https://github.com/nolimits4web/Swiper/issues/1182","id":63773084,"number":1182,"title":"swiper.update() doesn't work correctly after hiding some slides","user":{"login":"cbxp","id":1681449,"avatar_url":"https://avatars.githubusercontent.com/u/1681449?v=3","gravatar_id":"","url":"https://api.github.com/users/cbxp","html_url":"https://github.com/cbxp","followers_url":"https://api.github.com/users/cbxp/followers","following_url":"https://api.github.com/users/cbxp/following{/other_user}","gists_url":"https://api.github.com/users/cbxp/gists{/gist_id}","starred_url":"https://api.github.com/users/cbxp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbxp/subscriptions","organizations_url":"https://api.github.com/users/cbxp/orgs","repos_url":"https://api.github.com/users/cbxp/repos","events_url":"https://api.github.com/users/cbxp/events{/privacy}","received_events_url":"https://api.github.com/users/cbxp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-23T16:50:13Z","updated_at":"2015-03-23T17:57:59Z","closed_at":null,"body":"In general, often we need to hide/show slides dynamically, but after calling swiper.update() it doesn't behave correctly.\r\n\r\nIt used to work with swiper 3.0.0, when swiper.slides would remain the same as before, but swiper-active class would be set to correct element.\r\n\r\nNow, after upgrading to swiper 3.0.4 (and 3.0.5), in case some slides are hidden, swiper-active class is set to a wrong slide."},"comment":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/comments/85123914","html_url":"https://github.com/nolimits4web/Swiper/issues/1182#issuecomment-85123914","issue_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1182","id":85123914,"user":{"login":"angryziber","id":882016,"avatar_url":"https://avatars.githubusercontent.com/u/882016?v=3","gravatar_id":"","url":"https://api.github.com/users/angryziber","html_url":"https://github.com/angryziber","followers_url":"https://api.github.com/users/angryziber/followers","following_url":"https://api.github.com/users/angryziber/following{/other_user}","gists_url":"https://api.github.com/users/angryziber/gists{/gist_id}","starred_url":"https://api.github.com/users/angryziber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angryziber/subscriptions","organizations_url":"https://api.github.com/users/angryziber/orgs","repos_url":"https://api.github.com/users/angryziber/repos","events_url":"https://api.github.com/users/angryziber/events{/privacy}","received_events_url":"https://api.github.com/users/angryziber/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T17:57:59Z","updated_at":"2015-03-23T17:57:59Z","body":"Then it accidentally worked fine in 3.0.0.\r\n\r\nI hope that current erratic behaviour can be fixed: it sets swiper-active class to a wrong slide, not the one that is currently visible."}}