{"action":"created","issue":{"url":"https://api.github.com/repos/akiran/react-slick/issues/1156","repository_url":"https://api.github.com/repos/akiran/react-slick","labels_url":"https://api.github.com/repos/akiran/react-slick/issues/1156/labels{/name}","comments_url":"https://api.github.com/repos/akiran/react-slick/issues/1156/comments","events_url":"https://api.github.com/repos/akiran/react-slick/issues/1156/events","html_url":"https://github.com/akiran/react-slick/issues/1156","id":309369716,"number":1156,"title":"Issue with using variableWidth and centerMode","user":{"login":"ankit-casaone","id":36263610,"avatar_url":"https://avatars0.githubusercontent.com/u/36263610?v=4","gravatar_id":"","url":"https://api.github.com/users/ankit-casaone","html_url":"https://github.com/ankit-casaone","followers_url":"https://api.github.com/users/ankit-casaone/followers","following_url":"https://api.github.com/users/ankit-casaone/following{/other_user}","gists_url":"https://api.github.com/users/ankit-casaone/gists{/gist_id}","starred_url":"https://api.github.com/users/ankit-casaone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankit-casaone/subscriptions","organizations_url":"https://api.github.com/users/ankit-casaone/orgs","repos_url":"https://api.github.com/users/ankit-casaone/repos","events_url":"https://api.github.com/users/ankit-casaone/events{/privacy}","received_events_url":"https://api.github.com/users/ankit-casaone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-28T13:35:20Z","updated_at":"2018-03-30T05:36:59Z","closed_at":"2018-03-30T05:36:59Z","author_association":"NONE","body":"Hello React Slick Team\r\n\r\nI must say that this is a great slider and I really appreciate all the hard work that you guys have done to build this amazing product. But right now I am facing a strange issue while using the variableWidth.\r\n\r\nI have a slider with the following options:\r\n        {\r\n            arrows={false}\r\n            centerMode\r\n            infinite\r\n            slidesToShow={1}\r\n            slidesToScroll={1}\r\n            variableWidth\r\n        }\r\n\r\nThere are 9 divs in the slider. On the initial load the 1st div is in the center, the 9th partially hidden on the left and the 2nd on the right. The slider works fine until you reach the last div.\r\nWhen the 8th slide is in the center and 9th is on the right, and you click on the next button, the slider jitters a little to shift the 9th div to the left and bring the 1st div in the center.\r\n\r\nYou can check this out at\r\nhttps://staging.casaone.com/\r\n\r\nScroll to the section with the heading **Recent CasaOne Deliveries**\r\n\r\nPlease help me with this and let me know if you need some more information.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/akiran/react-slick/issues/comments/377450026","html_url":"https://github.com/akiran/react-slick/issues/1156#issuecomment-377450026","issue_url":"https://api.github.com/repos/akiran/react-slick/issues/1156","id":377450026,"user":{"login":"laveesingh","id":8917978,"avatar_url":"https://avatars0.githubusercontent.com/u/8917978?v=4","gravatar_id":"","url":"https://api.github.com/users/laveesingh","html_url":"https://github.com/laveesingh","followers_url":"https://api.github.com/users/laveesingh/followers","following_url":"https://api.github.com/users/laveesingh/following{/other_user}","gists_url":"https://api.github.com/users/laveesingh/gists{/gist_id}","starred_url":"https://api.github.com/users/laveesingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laveesingh/subscriptions","organizations_url":"https://api.github.com/users/laveesingh/orgs","repos_url":"https://api.github.com/users/laveesingh/repos","events_url":"https://api.github.com/users/laveesingh/events{/privacy}","received_events_url":"https://api.github.com/users/laveesingh/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T05:36:59Z","updated_at":"2018-03-30T05:36:59Z","author_association":"COLLABORATOR","body":"Please update to the latest version 0.22.3. It has been fixed in the latest version."}}
{"actor":{"display_login":"laveesingh"}}