{"action":"closed","issue":{"url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/100","labels_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/100/comments","events_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/100/events","html_url":"https://github.com/MortimerGoro/MGSwipeTableCell/issues/100","id":72130521,"number":100,"title":"canSwipe not called when button is shown","user":{"login":"messiahluo","id":1495875,"avatar_url":"https://avatars.githubusercontent.com/u/1495875?v=3","gravatar_id":"","url":"https://api.github.com/users/messiahluo","html_url":"https://github.com/messiahluo","followers_url":"https://api.github.com/users/messiahluo/followers","following_url":"https://api.github.com/users/messiahluo/following{/other_user}","gists_url":"https://api.github.com/users/messiahluo/gists{/gist_id}","starred_url":"https://api.github.com/users/messiahluo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/messiahluo/subscriptions","organizations_url":"https://api.github.com/users/messiahluo/orgs","repos_url":"https://api.github.com/users/messiahluo/repos","events_url":"https://api.github.com/users/messiahluo/events{/privacy}","received_events_url":"https://api.github.com/users/messiahluo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-30T11:11:49Z","updated_at":"2015-07-22T18:19:25Z","closed_at":"2015-07-22T18:19:25Z","body":"I have a cell have a leftButton and a rightButton, I only want the leftButton show on some conditions, so I override the canSwipe method like this:\r\n     \r\n    return (direction == MGSwipeDirectionLeftToRight && shouldLeftButtonShown);\r\n\r\nwhen the cell is in normal state, it's working great, but when I swipe right to left first, now cell is showing my rightButton, then I swipe left to right, the leftButton comes out unexpectly, and the breakpoint in canSwipe method is not been hit. \r\n\r\nI think it is a bug in here or I need to do some extra stuff to make this work? \r\n\r\nAnd thanks for the the great work! It really make life easier."}}