{"action":"created","issue":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/1059","repository_url":"https://api.github.com/repos/kenwheeler/slick","labels_url":"https://api.github.com/repos/kenwheeler/slick/issues/1059/labels{/name}","comments_url":"https://api.github.com/repos/kenwheeler/slick/issues/1059/comments","events_url":"https://api.github.com/repos/kenwheeler/slick/issues/1059/events","html_url":"https://github.com/kenwheeler/slick/issues/1059","id":58340518,"number":1059,"title":"Offset calculation when slideCount == slidesToShow","user":{"login":"basbitfactory","id":11089412,"avatar_url":"https://avatars.githubusercontent.com/u/11089412?v=3","gravatar_id":"","url":"https://api.github.com/users/basbitfactory","html_url":"https://github.com/basbitfactory","followers_url":"https://api.github.com/users/basbitfactory/followers","following_url":"https://api.github.com/users/basbitfactory/following{/other_user}","gists_url":"https://api.github.com/users/basbitfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/basbitfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basbitfactory/subscriptions","organizations_url":"https://api.github.com/users/basbitfactory/orgs","repos_url":"https://api.github.com/users/basbitfactory/repos","events_url":"https://api.github.com/users/basbitfactory/events{/privacy}","received_events_url":"https://api.github.com/users/basbitfactory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-20T11:34:25Z","updated_at":"2016-03-10T08:07:16Z","closed_at":null,"body":"Hi Ken,\r\n\r\nFirst of all thanks for this superb plugin, really appreciated!\r\n\r\nI ran into problems with v1.3.15 (v1.4 and v1.4.1 don't seem to fix it either), when my SlideCount was equal to SlidesToShow (and CenterMode = true and Infinite = true). In this case it was showing only 4 out of 5 slides because on the left a extra margin was added with translate3D.\r\n\r\nWhen looking through your code i found the problem in the getLeft() function.\r\n\r\n````\r\nif (_.slideCount <= _.options.slidesToShow){\r\n            _.slideOffset = 0;\r\n            verticalOffset = 0;\r\n}\r\n````\r\nOk, so now the slideOffset = 0;\r\n\r\n``````\r\nif (_.options.centerMode === true && _.options.infinite === true) {\r\n            _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;\r\n        } else if (_.options.centerMode === true) {\r\n            _.slideOffset = 0;\r\n            _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);\r\n}\r\n```````\r\nSo now the slider gets added 1 slideWidth as Offset on the left side, ergo: showing 4 of 5 slides (last one is \"hidden\"), while this should be no Offset.\r\n\r\nIs this something you can fix for upcomming versions?"},"comment":{"url":"https://api.github.com/repos/kenwheeler/slick/issues/comments/194723759","html_url":"https://github.com/kenwheeler/slick/issues/1059#issuecomment-194723759","issue_url":"https://api.github.com/repos/kenwheeler/slick/issues/1059","id":194723759,"user":{"login":"tobias47n9e","id":6953323,"avatar_url":"https://avatars.githubusercontent.com/u/6953323?v=3","gravatar_id":"","url":"https://api.github.com/users/tobias47n9e","html_url":"https://github.com/tobias47n9e","followers_url":"https://api.github.com/users/tobias47n9e/followers","following_url":"https://api.github.com/users/tobias47n9e/following{/other_user}","gists_url":"https://api.github.com/users/tobias47n9e/gists{/gist_id}","starred_url":"https://api.github.com/users/tobias47n9e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobias47n9e/subscriptions","organizations_url":"https://api.github.com/users/tobias47n9e/orgs","repos_url":"https://api.github.com/users/tobias47n9e/repos","events_url":"https://api.github.com/users/tobias47n9e/events{/privacy}","received_events_url":"https://api.github.com/users/tobias47n9e/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T08:07:16Z","updated_at":"2016-03-10T08:07:16Z","body":"Hi! I can confirm that @danodm 's fix works. Can we get a milestone for this issue, to see in which version will include the fix?"}}