{"action":"closed","issue":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/519","labels_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/519/comments","events_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/519/events","html_url":"https://github.com/nolimits4web/Swiper/issues/519","id":24315691,"number":519,"title":"Vertical loop with freeMode scroll issue (bottom -> up)","user":{"login":"boeledi","id":3143268,"avatar_url":"https://avatars.githubusercontent.com/u/3143268?v=3","gravatar_id":"","url":"https://api.github.com/users/boeledi","html_url":"https://github.com/boeledi","followers_url":"https://api.github.com/users/boeledi/followers","following_url":"https://api.github.com/users/boeledi/following{/other_user}","gists_url":"https://api.github.com/users/boeledi/gists{/gist_id}","starred_url":"https://api.github.com/users/boeledi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boeledi/subscriptions","organizations_url":"https://api.github.com/users/boeledi/orgs","repos_url":"https://api.github.com/users/boeledi/repos","events_url":"https://api.github.com/users/boeledi/events{/privacy}","received_events_url":"https://api.github.com/users/boeledi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-12-15T17:48:02Z","updated_at":"2015-02-11T20:29:06Z","closed_at":"2015-02-11T20:29:06Z","body":"Hi,\r\n\r\nFirst of all, congratulations !! It is a great plugin !\r\n\r\nI am have an issue using the \"vertical\" mode, combined with \"loop\" and \"freeMode\"\r\nThe loop works fine when scrolling \"top -> bottom\".\r\nHowever when scrolling \"bottom -> top\", it stops at the last element and does not loop.\r\n\r\nHere is the code I use:\r\n\r\nfunction(){\r\n\tvar $elm\t\t= this.element,\r\n\t\t$par\t\t= $elm.parent(),\r\n\t\tthat\t\t= this,\r\n\t\t_w\t\t= vp.c.h,\t\t\t\t/* -- width -- */\r\n\t\t$html\t= null,\r\n\t\t$wrapper\t= null,\t\t\t\t\t/* -- slider wrapper -- */\r\n\t\tswiper\t= null;\r\n\r\n\t/* -- we need to create a vertical swiper -- */\r\n\tvar fake_slides = '',\r\n\t\t\ti = 20;\r\n\twhile (i--){\r\n\t\tfake_slides += '<div class=\"swiper-slide\" style=\"height:150px !important\"><img src=\"/image_150x150.png\" style=\"width:150px;height:150px\"/></div>';\r\n\t}\r\n\r\n\t$html = $('<div class=\"swiper-container rollup\" style=\"width:{0}px;height:{1}px\"><div class=\"swiper-wrapper\">{2}</div></div>'.format(_w, $par.height(), fake_slides));\r\n\t$elm.append($html);\r\n\t$wrapper = $('.swiper-wrapper', $html);\r\n\t\r\n        swiper\t = $html.swiper({\r\n\t\t\t\t\t\tmode:\t\t'vertical',\r\n\t\t\t\t\t\tloop:\t\t\ttrue,\r\n\t\t\t\t\t\tfreeMode:\ttrue,\r\n\t\t\t\t\t\tfreeModeFluid:\ttrue,\r\n\t\t\t\t\t\tfollowFinger:\ttrue,\r\n\t\t\t\t\t\tcssWidthAndHeight:\ttrue,\r\n\t\t\t\t\t\tautoResize:\ttrue,\r\n\t\t\t\t\t\tcalculateHeight:true,\r\n\t\t\t\t\t\tloopAdditionalSlides: 2,\r\n\t\t\t\t\t\tslidesPerView:\t'auto',\r\n\t\t\t\t\t\tloopedSlides:\t2,\r\n\t\t\t\t\t\tmomentumRatio:\t2\r\n\t\t\t\t});\r\n\r\n}\r\n\r\nThanks for you help"}}