{"action":"created","issue":{"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/204","repository_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views","labels_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/204/comments","events_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/204/events","html_url":"https://github.com/oliviertassinari/react-swipeable-views/issues/204","id":194536001,"number":204,"title":"[virtualize] May hit the \"last slide\" when swiping fast to the left","user":{"login":"yoadsn","id":1684709,"avatar_url":"https://avatars.githubusercontent.com/u/1684709?v=3","gravatar_id":"","url":"https://api.github.com/users/yoadsn","html_url":"https://github.com/yoadsn","followers_url":"https://api.github.com/users/yoadsn/followers","following_url":"https://api.github.com/users/yoadsn/following{/other_user}","gists_url":"https://api.github.com/users/yoadsn/gists{/gist_id}","starred_url":"https://api.github.com/users/yoadsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoadsn/subscriptions","organizations_url":"https://api.github.com/users/yoadsn/orgs","repos_url":"https://api.github.com/users/yoadsn/repos","events_url":"https://api.github.com/users/yoadsn/events{/privacy}","received_events_url":"https://api.github.com/users/yoadsn/received_events","type":"User","site_admin":false},"labels":[{"id":263670844,"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/labels/bug","name":"bug","color":"fc2929","default":true},{"id":404259224,"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/labels/Priority","name":"Priority","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-09T08:07:17Z","updated_at":"2016-12-10T19:53:14Z","closed_at":null,"body":"Hey,\r\nCreated this bin http://www.webpackbin.com/4kydqm7mf.\r\nI added large padding on the slider component so slide \"before\" and \"after\" are also visible.\r\nthis shows the lagging in rendering and eventually arriving at a \"last slide\" which should not happen.\r\nAnd here is a short screen capture of this behavior:\r\n![capture2](https://cloud.githubusercontent.com/assets/1684709/21041957/1596e65c-bdf7-11e6-9078-0c1919ed0bf3.gif)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/comments/266233418","html_url":"https://github.com/oliviertassinari/react-swipeable-views/issues/204#issuecomment-266233418","issue_url":"https://api.github.com/repos/oliviertassinari/react-swipeable-views/issues/204","id":266233418,"user":{"login":"yoadsn","id":1684709,"avatar_url":"https://avatars.githubusercontent.com/u/1684709?v=3","gravatar_id":"","url":"https://api.github.com/users/yoadsn","html_url":"https://github.com/yoadsn","followers_url":"https://api.github.com/users/yoadsn/followers","following_url":"https://api.github.com/users/yoadsn/following{/other_user}","gists_url":"https://api.github.com/users/yoadsn/gists{/gist_id}","starred_url":"https://api.github.com/users/yoadsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoadsn/subscriptions","organizations_url":"https://api.github.com/users/yoadsn/orgs","repos_url":"https://api.github.com/users/yoadsn/repos","events_url":"https://api.github.com/users/yoadsn/events{/privacy}","received_events_url":"https://api.github.com/users/yoadsn/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T19:53:14Z","updated_at":"2016-12-10T19:53:14Z","body":"@oliviertassinari Reading the suggestion, which makes sense but also is a big effort. I wonder, if just to overcome this bug there could be a workaround. After all, if the `onTransitionEnd` callback would have been called the `setWindow` would resolve the problem.\r\n\r\nIs it too ugly to create a timer which is scheduled upon every index change and cleared when `onTransitionEnd` is called or when another index change is invoked - and if this timer is gets to fire (after a delay which is say 1.5X the animation delay) we can use that to just do a `setWindow` that would \"add\" the missing slides.\r\n\r\nI think it's OK to arrive at an end, and \"add\" the missing slides after some time.. this would give the impression of lazy loading to the user and may even be more elegant then actually trying to have slides coming in from the left no matter the speed and distance of swipe..\r\n\r\nIt's a naaive suggestion but I would take that without thinking twice over the existing behavior."}}
{"actor":{"display_login":"yoadsn"}}