{"action":"closed","issue":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/2255","repository_url":"https://api.github.com/repos/alvarotrigo/fullPage.js","labels_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/2255/labels{/name}","comments_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/2255/comments","events_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/2255/events","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/2255","id":176250056,"number":2255,"title":"Can onLeave fire moveTo ?","user":{"login":"user928","id":12034888,"avatar_url":"https://avatars.githubusercontent.com/u/12034888?v=3","gravatar_id":"","url":"https://api.github.com/users/user928","html_url":"https://github.com/user928","followers_url":"https://api.github.com/users/user928/followers","following_url":"https://api.github.com/users/user928/following{/other_user}","gists_url":"https://api.github.com/users/user928/gists{/gist_id}","starred_url":"https://api.github.com/users/user928/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user928/subscriptions","organizations_url":"https://api.github.com/users/user928/orgs","repos_url":"https://api.github.com/users/user928/repos","events_url":"https://api.github.com/users/user928/events{/privacy}","received_events_url":"https://api.github.com/users/user928/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-11T15:47:16Z","updated_at":"2016-09-11T16:57:09Z","closed_at":"2016-09-11T16:57:09Z","body":"### Description\r\nHello, is it possible to skip some section while moving up or down?\r\n\r\nlet's say that I want to skip the 2nd section if I move up from 1st, so 2nd is skipped and I arrive on 3rd section.  Is that achievable  like this?\r\n```javascript\r\nonLeave: function(index, nextIndex, direction){\r\n    \r\n            //from #1 to #2 UP direction\r\n            if(index == 1 && nextIndex == 2 && direction =='up'){\r\n                $.fn.fullpage.moveTo(3);\r\n            }\r\n\r\n        }\r\n```\r\n\r\n\r\n### Link to my demo:\r\nhttp://codepen.io/user928/pen/xEGBmd?editors=0010\r\n\r\n"}}
{"actor":{"display_login":"alvarotrigo"}}