{"action":"created","issue":{"url":"https://api.github.com/repos/metafizzy/flickity/issues/135","labels_url":"https://api.github.com/repos/metafizzy/flickity/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/metafizzy/flickity/issues/135/comments","events_url":"https://api.github.com/repos/metafizzy/flickity/issues/135/events","html_url":"https://github.com/metafizzy/flickity/issues/135","id":75161451,"number":135,"title":"contain: true = too many dots and next btn disabled to late","user":{"login":"hadl","id":3617107,"avatar_url":"https://avatars.githubusercontent.com/u/3617107?v=3","gravatar_id":"","url":"https://api.github.com/users/hadl","html_url":"https://github.com/hadl","followers_url":"https://api.github.com/users/hadl/followers","following_url":"https://api.github.com/users/hadl/following{/other_user}","gists_url":"https://api.github.com/users/hadl/gists{/gist_id}","starred_url":"https://api.github.com/users/hadl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadl/subscriptions","organizations_url":"https://api.github.com/users/hadl/orgs","repos_url":"https://api.github.com/users/hadl/repos","events_url":"https://api.github.com/users/hadl/events{/privacy}","received_events_url":"https://api.github.com/users/hadl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T10:00:13Z","updated_at":"2015-05-11T12:43:03Z","closed_at":"2015-05-11T12:43:03Z","body":"I've set contain: true and the dots don't reflect the \"slideable slides/pages\". \r\nThe next button gets disabled only if selectedIndex == cells.length. Therefore the user can click several times without any animation before the button gets disabled.\r\n\r\nTestcase: http://codepen.io/hadl/pen/MwKGdE/"},"comment":{"url":"https://api.github.com/repos/metafizzy/flickity/issues/comments/100894043","html_url":"https://github.com/metafizzy/flickity/issues/135#issuecomment-100894043","issue_url":"https://api.github.com/repos/metafizzy/flickity/issues/135","id":100894043,"user":{"login":"desandro","id":85566,"avatar_url":"https://avatars.githubusercontent.com/u/85566?v=3","gravatar_id":"","url":"https://api.github.com/users/desandro","html_url":"https://github.com/desandro","followers_url":"https://api.github.com/users/desandro/followers","following_url":"https://api.github.com/users/desandro/following{/other_user}","gists_url":"https://api.github.com/users/desandro/gists{/gist_id}","starred_url":"https://api.github.com/users/desandro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desandro/subscriptions","organizations_url":"https://api.github.com/users/desandro/orgs","repos_url":"https://api.github.com/users/desandro/repos","events_url":"https://api.github.com/users/desandro/events{/privacy}","received_events_url":"https://api.github.com/users/desandro/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T12:43:03Z","updated_at":"2015-05-11T12:43:03Z","body":"Thanks for reporting this issue. Visually, you are correct. When `contain: true`, it appears like there can be an extra page dot and the next button doesn't get disabled when you're at the end. But functionally, both the page dots and the previous/next buttons work with the selected cell, not where the gallery is visually. Highlighting the selected cell helps show how this works: http://codepen.io/desandro/pen/rVxrxX\r\n\r\nFlickity is working as intended."}}