{"action":"created","issue":{"url":"https://api.github.com/repos/geut/mithril-transition/issues/1","labels_url":"https://api.github.com/repos/geut/mithril-transition/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/geut/mithril-transition/issues/1/comments","events_url":"https://api.github.com/repos/geut/mithril-transition/issues/1/events","html_url":"https://github.com/geut/mithril-transition/issues/1","id":111611758,"number":1,"title":"Double Click","user":{"login":"randallr","id":373760,"avatar_url":"https://avatars.githubusercontent.com/u/373760?v=3","gravatar_id":"","url":"https://api.github.com/users/randallr","html_url":"https://github.com/randallr","followers_url":"https://api.github.com/users/randallr/followers","following_url":"https://api.github.com/users/randallr/following{/other_user}","gists_url":"https://api.github.com/users/randallr/gists{/gist_id}","starred_url":"https://api.github.com/users/randallr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallr/subscriptions","organizations_url":"https://api.github.com/users/randallr/orgs","repos_url":"https://api.github.com/users/randallr/repos","events_url":"https://api.github.com/users/randallr/events{/privacy}","received_events_url":"https://api.github.com/users/randallr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T13:04:13Z","updated_at":"2015-10-16T00:52:24Z","closed_at":null,"body":"In the live example, double clicking the button breaks the transitioning."},"comment":{"url":"https://api.github.com/repos/geut/mithril-transition/issues/comments/148563246","html_url":"https://github.com/geut/mithril-transition/issues/1#issuecomment-148563246","issue_url":"https://api.github.com/repos/geut/mithril-transition/issues/1","id":148563246,"user":{"login":"tinchoz49","id":819446,"avatar_url":"https://avatars.githubusercontent.com/u/819446?v=3","gravatar_id":"","url":"https://api.github.com/users/tinchoz49","html_url":"https://github.com/tinchoz49","followers_url":"https://api.github.com/users/tinchoz49/followers","following_url":"https://api.github.com/users/tinchoz49/following{/other_user}","gists_url":"https://api.github.com/users/tinchoz49/gists{/gist_id}","starred_url":"https://api.github.com/users/tinchoz49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinchoz49/subscriptions","organizations_url":"https://api.github.com/users/tinchoz49/orgs","repos_url":"https://api.github.com/users/tinchoz49/repos","events_url":"https://api.github.com/users/tinchoz49/events{/privacy}","received_events_url":"https://api.github.com/users/tinchoz49/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T00:52:24Z","updated_at":"2015-10-16T00:52:24Z","body":"Hi, @randallr thanks for report the issue.\r\nThis was happening because the last element kept the events (clicks for example) in the transition until is removed.\r\nI had two possible solutions here:\r\nFirst solution: I clone ( true) the lastElem to remove all events from the node but clone an element is expensive and i prefer keep the perfomance in the library.\r\nSecond solution: I disable the pointer events in the lastElem so now when the transition is started you can't produce an event when you click again in the button.\r\n\r\nOne thing more. Now, if you see the live example the double click is working but the animations created with velocity don't feel is right (the elements are overlaping). My point is: mithril-transition is only a helper to create your custom transitions and the double click is more like a problem that you have to deal how fix it in your app.\r\nMaybe you can use the debounce function that some libraries has (underscore and lodash).\r\n\r\nAgain, thanks for reporting the issue!"}}