{"action":"created","issue":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/245","repository_url":"https://api.github.com/repos/leecade/react-native-swiper","labels_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/245/comments","events_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/245/events","html_url":"https://github.com/leecade/react-native-swiper/issues/245","id":178874934,"number":245,"title":"iOS stuck when quick scrolling with loop enabled","user":{"login":"ox-michaelradionov","id":19311309,"avatar_url":"https://avatars.githubusercontent.com/u/19311309?v=3","gravatar_id":"","url":"https://api.github.com/users/ox-michaelradionov","html_url":"https://github.com/ox-michaelradionov","followers_url":"https://api.github.com/users/ox-michaelradionov/followers","following_url":"https://api.github.com/users/ox-michaelradionov/following{/other_user}","gists_url":"https://api.github.com/users/ox-michaelradionov/gists{/gist_id}","starred_url":"https://api.github.com/users/ox-michaelradionov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ox-michaelradionov/subscriptions","organizations_url":"https://api.github.com/users/ox-michaelradionov/orgs","repos_url":"https://api.github.com/users/ox-michaelradionov/repos","events_url":"https://api.github.com/users/ox-michaelradionov/events{/privacy}","received_events_url":"https://api.github.com/users/ox-michaelradionov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-23T13:16:26Z","updated_at":"2016-10-19T06:17:42Z","closed_at":null,"body":"The issue is only for iOS, Android works fine.\r\nI was able to reproduce it both on real device and in simulator.\r\n\r\nI have Swiper with four slides and loop option set to `true`. When I swipe to one direction very fast,  pretty soon the whole slider is stuck and I am no longer able to swipe to that same direction. I can swipe in the opposite direction though, if I do it once (swipe back one slide), then it \"unstucks\" and I can swipe in the original direction again.\r\nFrom my research it stops on the last slide if I quickly swipe to the left, or on the first slide if I quickly swipe to the right.\r\n\r\nThe problem is that `onMomentumScrollEnd` is only fired when the animation ends, but when I swipe quickly (I start new swipe action in the middle of previous animation) animation never ends and callback never fires. It leads to the situation when offset keep growing, a queue of looped slides is never updated and I am able to get to the \"end\" of the slides even though it is a looped mode. I guess that's why it only stops on the first or the last slide.\r\n\r\nMaybe it is possible to somehow update the state mid-air without waiting for animation to end and without actually interrupting active animation with any visible lags?"},"comment":{"url":"https://api.github.com/repos/leecade/react-native-swiper/issues/comments/254720802","html_url":"https://github.com/leecade/react-native-swiper/issues/245#issuecomment-254720802","issue_url":"https://api.github.com/repos/leecade/react-native-swiper/issues/245","id":254720802,"user":{"login":"onlyoneonly","id":12227655,"avatar_url":"https://avatars.githubusercontent.com/u/12227655?v=3","gravatar_id":"","url":"https://api.github.com/users/onlyoneonly","html_url":"https://github.com/onlyoneonly","followers_url":"https://api.github.com/users/onlyoneonly/followers","following_url":"https://api.github.com/users/onlyoneonly/following{/other_user}","gists_url":"https://api.github.com/users/onlyoneonly/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyoneonly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyoneonly/subscriptions","organizations_url":"https://api.github.com/users/onlyoneonly/orgs","repos_url":"https://api.github.com/users/onlyoneonly/repos","events_url":"https://api.github.com/users/onlyoneonly/events{/privacy}","received_events_url":"https://api.github.com/users/onlyoneonly/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T06:17:42Z","updated_at":"2016-10-19T06:17:42Z","body":"@leecade  just swipe the page to one direction very fast,pretty soon the whole slider is stuck and I am no longer able to swipe to that same direction. I can swipe in the opposite direction though, if I do it once (swipe back one slide), then it \"unstucks\" and I can swipe in the original direction again.\r\nFrom my research it stops on the last slide if I quickly swipe to the left, or on the first slide if I quickly swipe to the right."}}
{"actor":{"display_login":"onlyoneonly"}}