{"action":"created","issue":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1096","labels_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1096/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1096/comments","events_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1096/events","html_url":"https://github.com/nolimits4web/Swiper/issues/1096","id":57538670,"number":1096,"title":"Integrate mouseleave event to have proper cancel-animation on Desktop","user":{"login":"martensms","id":592637,"avatar_url":"https://avatars.githubusercontent.com/u/592637?v=3","gravatar_id":"","url":"https://api.github.com/users/martensms","html_url":"https://github.com/martensms","followers_url":"https://api.github.com/users/martensms/followers","following_url":"https://api.github.com/users/martensms/following{/other_user}","gists_url":"https://api.github.com/users/martensms/gists{/gist_id}","starred_url":"https://api.github.com/users/martensms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensms/subscriptions","organizations_url":"https://api.github.com/users/martensms/orgs","repos_url":"https://api.github.com/users/martensms/repos","events_url":"https://api.github.com/users/martensms/events{/privacy}","received_events_url":"https://api.github.com/users/martensms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-12T23:50:56Z","updated_at":"2015-02-12T23:55:52Z","closed_at":null,"body":"Hey there,\r\n\r\nby quick testing your library I found out that you don't bind the mouseleave event on Desktop.\r\nIf a user drags a slide from the demos (e.g. a vertical slide) and moves the mouse outside the container, it of course cancels. The issue here is that if the mouse gets in again (even if not pressing the mouse button) the animation still behaves like it's being dragged.\r\n\r\nYou can simply fix that by adding the same logic like mouseup, just for the mouseleave event here:\r\nhttps://github.com/nolimits4web/Swiper/blob/master/src/js/core.js#L739"},"comment":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/comments/74179371","html_url":"https://github.com/nolimits4web/Swiper/issues/1096#issuecomment-74179371","issue_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1096","id":74179371,"user":{"login":"martensms","id":592637,"avatar_url":"https://avatars.githubusercontent.com/u/592637?v=3","gravatar_id":"","url":"https://api.github.com/users/martensms","html_url":"https://github.com/martensms","followers_url":"https://api.github.com/users/martensms/followers","following_url":"https://api.github.com/users/martensms/following{/other_user}","gists_url":"https://api.github.com/users/martensms/gists{/gist_id}","starred_url":"https://api.github.com/users/martensms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensms/subscriptions","organizations_url":"https://api.github.com/users/martensms/orgs","repos_url":"https://api.github.com/users/martensms/repos","events_url":"https://api.github.com/users/martensms/events{/privacy}","received_events_url":"https://api.github.com/users/martensms/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T23:55:51Z","updated_at":"2015-02-12T23:55:51Z","body":"Simple use case: Two-monitor setup, move mouse outside window while dragging. Same issue, same behaviour."}}