{"action":"created","issue":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/1302","repository_url":"https://api.github.com/repos/kenwheeler/slick","labels_url":"https://api.github.com/repos/kenwheeler/slick/issues/1302/labels{/name}","comments_url":"https://api.github.com/repos/kenwheeler/slick/issues/1302/comments","events_url":"https://api.github.com/repos/kenwheeler/slick/issues/1302/events","html_url":"https://github.com/kenwheeler/slick/issues/1302","id":72477235,"number":1302,"title":"center mode not working when slides are equal to slidesToShow","user":{"login":"jullermss","id":4162468,"avatar_url":"https://avatars.githubusercontent.com/u/4162468?v=3","gravatar_id":"","url":"https://api.github.com/users/jullermss","html_url":"https://github.com/jullermss","followers_url":"https://api.github.com/users/jullermss/followers","following_url":"https://api.github.com/users/jullermss/following{/other_user}","gists_url":"https://api.github.com/users/jullermss/gists{/gist_id}","starred_url":"https://api.github.com/users/jullermss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jullermss/subscriptions","organizations_url":"https://api.github.com/users/jullermss/orgs","repos_url":"https://api.github.com/users/jullermss/repos","events_url":"https://api.github.com/users/jullermss/events{/privacy}","received_events_url":"https://api.github.com/users/jullermss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-01T17:19:39Z","updated_at":"2016-04-21T20:37:25Z","closed_at":"2015-06-16T13:59:41Z","body":"Hi, I'm using slicker but I have a problem.\r\n\r\nI have:\r\n\r\n             <div class=\"thumbnail-gallery-container\">\r\n                                \r\n                    <div class=\"thumbnail \">\r\n                        <img src=\"../images/one.png\" alt=\"pic_one\" />\r\n                    </div>\r\n                    <div class=\"thumbnail \">\r\n                        <img src=\"../images/two.png\" alt=\"pic_two\" />\r\n                    </div>\r\n                    <div class=\"thumbnail \">\r\n                        <img src=\"../images/three.png\" alt=\"pic_three\" />\r\n                    </div>        \r\n                </div>\r\n\r\n$thumnailContainer.slick({\r\n        slidesToShow: 3,\r\n        slidesToScroll: 1,\r\n        arrows: true,\r\n        infinite: true,\r\n        dots: false,\r\n        centerMode: true,\r\n        focusOnSelect: true,\r\n        variableWidth: true\r\n    });\r\n\r\n\r\n-----\r\n\r\nThe problem is that when I have the same number of slides and slidesToShow, the div \"slider-track\" have an inline style of \"transform: translate3d(137px, 0px, 0px);\" and that makes that this is not center.\r\n\r\nThis is how it look\r\n![3slides](https://cloud.githubusercontent.com/assets/4162468/7433955/532332ea-f004-11e4-9c94-29c33ad93ffd.png)\r\n\r\nBut when I have 4 slides and slidesToShow = 3, it looks fine:\r\n![4slides](https://cloud.githubusercontent.com/assets/4162468/7433999/9543f0a6-f004-11e4-93a2-9974a622bbc3.png)\r\n\r\n\r\nIs there any way that I can make this 3 slides respect the center mode and not adding the \"\"transform: translate3d(137px, 0px, 0px)\"  when numberOfSlides == slidesToShow ??\r\n\r\nThank you!!\r\n"},"comment":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/comments/213104214","html_url":"https://github.com/kenwheeler/slick/issues/1302#issuecomment-213104214","issue_url":"https://api.github.com/repos/kenwheeler/slick/issues/1302","id":213104214,"user":{"login":"alexfromapex","id":1907805,"avatar_url":"https://avatars.githubusercontent.com/u/1907805?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfromapex","html_url":"https://github.com/alexfromapex","followers_url":"https://api.github.com/users/alexfromapex/followers","following_url":"https://api.github.com/users/alexfromapex/following{/other_user}","gists_url":"https://api.github.com/users/alexfromapex/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfromapex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfromapex/subscriptions","organizations_url":"https://api.github.com/users/alexfromapex/orgs","repos_url":"https://api.github.com/users/alexfromapex/repos","events_url":"https://api.github.com/users/alexfromapex/events{/privacy}","received_events_url":"https://api.github.com/users/alexfromapex/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T20:37:25Z","updated_at":"2016-04-21T20:37:25Z","body":"Is there a shim fix? I'd rather not modify my included Slick JS file, as I need it to be delievered on a CDN."}}