{"action":"closed","issue":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1603","repository_url":"https://api.github.com/repos/nolimits4web/Swiper","labels_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1603/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1603/comments","events_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1603/events","html_url":"https://github.com/nolimits4web/Swiper/issues/1603","id":132085480,"number":1603,"title":"Thumbs Gallery With Two-way Control / multiple instances","user":{"login":"lxmarinkovic","id":3509527,"avatar_url":"https://avatars.githubusercontent.com/u/3509527?v=3","gravatar_id":"","url":"https://api.github.com/users/lxmarinkovic","html_url":"https://github.com/lxmarinkovic","followers_url":"https://api.github.com/users/lxmarinkovic/followers","following_url":"https://api.github.com/users/lxmarinkovic/following{/other_user}","gists_url":"https://api.github.com/users/lxmarinkovic/gists{/gist_id}","starred_url":"https://api.github.com/users/lxmarinkovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxmarinkovic/subscriptions","organizations_url":"https://api.github.com/users/lxmarinkovic/orgs","repos_url":"https://api.github.com/users/lxmarinkovic/repos","events_url":"https://api.github.com/users/lxmarinkovic/events{/privacy}","received_events_url":"https://api.github.com/users/lxmarinkovic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T09:03:22Z","updated_at":"2016-02-08T20:15:15Z","closed_at":"2016-02-08T20:15:15Z","body":"My code looks like this and it works perfect on multiple instances except cant get two way control to work ( thumbs to control slides and vice versa):\r\n\r\n$(\".gallery-top\").each(function(index, element){\r\n    var $this = $(this);\r\n\tvar galleryTop = new Swiper(this, {\r\n\t\tnextButton: $(this).find('.swiper-button-next')[0],\r\n\t\tprevButton: $(this).find('.swiper-button-prev')[0],\r\n\t\tspaceBetween: 10,\r\n\t\tloop:true,\r\n\t\tloopedSlides: 5, \r\n\t\tpreloadImages: false,\r\n\t\tlazyLoading: true    \r\n    });\r\n});\r\n\r\n   $(\".gallery-thumbs\").each(function(index, element){\r\n    var $this = $(this);\r\n    var galleryThumbs  = new Swiper(this, {\r\n\t    spaceBetween: 10,\r\n        slidesPerView: 4,\r\n        touchRatio: 0.2,\r\n        loop:true,\r\n        loopedSlides: 5, \r\n        slideToClickedSlide: true,\r\n        preloadImages: false,\r\n        lazyLoading: true\r\n    });\r\n});\r\n\r\n   galleryTop.params.control = galleryThumbs;\r\n   galleryThumbs.params.control = galleryTop;\r\n\r\n\r\nDo you have any idea how to get two-way control working on this one"}}