{"action":"created","issue":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/2452","repository_url":"https://api.github.com/repos/kenwheeler/slick","labels_url":"https://api.github.com/repos/kenwheeler/slick/issues/2452/labels{/name}","comments_url":"https://api.github.com/repos/kenwheeler/slick/issues/2452/comments","events_url":"https://api.github.com/repos/kenwheeler/slick/issues/2452/events","html_url":"https://github.com/kenwheeler/slick/issues/2452","id":169125902,"number":2452,"title":"Synced sliders: removing the same index slide confuses the asNavFor indexes","user":{"login":"ananaszjoe","id":6877691,"avatar_url":"https://avatars.githubusercontent.com/u/6877691?v=3","gravatar_id":"","url":"https://api.github.com/users/ananaszjoe","html_url":"https://github.com/ananaszjoe","followers_url":"https://api.github.com/users/ananaszjoe/followers","following_url":"https://api.github.com/users/ananaszjoe/following{/other_user}","gists_url":"https://api.github.com/users/ananaszjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ananaszjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananaszjoe/subscriptions","organizations_url":"https://api.github.com/users/ananaszjoe/orgs","repos_url":"https://api.github.com/users/ananaszjoe/repos","events_url":"https://api.github.com/users/ananaszjoe/events{/privacy}","received_events_url":"https://api.github.com/users/ananaszjoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T13:02:00Z","updated_at":"2016-09-27T18:49:58Z","closed_at":null,"body":"When using two sliders in the slider syncing setup where you have a main slider on top and a navigation slider underneath, and you use `slickRemove` to remove the same 1 slide with the same index from both of the sliders, then the navigation slider will control the sliders with the wrong index. i.e.: when you remove slide #2 from both, then slick slide #3, both slider will slide to #4 instead.\r\n\r\n====================================================================\r\n\r\n\r\n###### `[  https://fiddle.jshell.net/ananaszjoe/ruky7kqd/  ]`  \r\n\r\nuse this jsfiddle to reproduce your bug: \r\nhttp://jsfiddle.net/simeydotme/fmo50w7n/ \r\nwe will likely close your issue without it.\r\n\r\n\r\n====================================================================\r\n\r\n\r\n#### Steps to reproduce the problem\r\n\r\n1. have 2 sliders each referring to each other with `asNavFor`.\r\n2. Have one of the sliders display multiple slides with `slidesToShow` and be centered with `focusOnSelect`\r\n3. use the `slickRemove` method to remove a slide from each slider ( with the same index! )\r\n4. click one of the slides in the slider that displays multiple slides and -> The sliders will slide to not the appropriate slide, but the next ones from that.\r\n\r\n\r\n====================================================================\r\n\r\n\r\n#### What is the expected behaviour?\r\n\r\nIdeally when removing a slide from a slider that has the `asNavFor ` set, the affected sldiers would refresh and clicking a slide would focus that one and not the next one from it.\r\n\r\n\r\n====================================================================\r\n\r\n\r\n#### What is observed behaviour?\r\nWhen you remove the same index slide from the two sliders, and slick on a slide to focus both slides to that index, the sliders will slide to the index that's the next from the one that was clicked.\r\n...  \r\n\r\n\r\n====================================================================\r\n\r\n\r\n#### More Details\r\n\r\n- Which browsers/versions does it happen on?\r\nI tested on the latest Chrome\r\n- Which jQuery/Slick version are you using?\r\nDiscovered the issue on `1.6.0`, reproduced it in jsfiddle using `https://rawgit.com/kenwheeler/slick/master/slick/slick.js`\r\n- Did this work before?\r\nNo knowledge of that\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/comments/249960688","html_url":"https://github.com/kenwheeler/slick/issues/2452#issuecomment-249960688","issue_url":"https://api.github.com/repos/kenwheeler/slick/issues/2452","id":249960688,"user":{"login":"JiveDig","id":540990,"avatar_url":"https://avatars.githubusercontent.com/u/540990?v=3","gravatar_id":"","url":"https://api.github.com/users/JiveDig","html_url":"https://github.com/JiveDig","followers_url":"https://api.github.com/users/JiveDig/followers","following_url":"https://api.github.com/users/JiveDig/following{/other_user}","gists_url":"https://api.github.com/users/JiveDig/gists{/gist_id}","starred_url":"https://api.github.com/users/JiveDig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiveDig/subscriptions","organizations_url":"https://api.github.com/users/JiveDig/orgs","repos_url":"https://api.github.com/users/JiveDig/repos","events_url":"https://api.github.com/users/JiveDig/events{/privacy}","received_events_url":"https://api.github.com/users/JiveDig/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T18:49:58Z","updated_at":"2016-09-27T18:49:58Z","body":"Got it. Wow, never would have thought to do it that way, thanks.. Working now :)"}}
{"actor":{"display_login":"JiveDig"}}