{"action":"created","issue":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/3421","repository_url":"https://api.github.com/repos/alvarotrigo/fullPage.js","labels_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/3421/labels{/name}","comments_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/3421/comments","events_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/3421/events","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/3421","id":363661253,"node_id":"MDU6SXNzdWUzNjM2NjEyNTM=","number":3421,"title":"too much recursion in firefox when usen callback onLeave ","user":{"login":"webstories","id":33317586,"node_id":"MDQ6VXNlcjMzMzE3NTg2","avatar_url":"https://avatars2.githubusercontent.com/u/33317586?v=4","gravatar_id":"","url":"https://api.github.com/users/webstories","html_url":"https://github.com/webstories","followers_url":"https://api.github.com/users/webstories/followers","following_url":"https://api.github.com/users/webstories/following{/other_user}","gists_url":"https://api.github.com/users/webstories/gists{/gist_id}","starred_url":"https://api.github.com/users/webstories/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webstories/subscriptions","organizations_url":"https://api.github.com/users/webstories/orgs","repos_url":"https://api.github.com/users/webstories/repos","events_url":"https://api.github.com/users/webstories/events{/privacy}","received_events_url":"https://api.github.com/users/webstories/received_events","type":"User","site_admin":false},"labels":[{"id":256127890,"node_id":"MDU6TGFiZWwyNTYxMjc4OTA=","url":"https://api.github.com/repos/alvarotrigo/fullPage.js/labels/Reproduction%20required","name":"Reproduction required","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-25T16:19:16Z","updated_at":"2018-09-28T16:04:29Z","closed_at":null,"author_association":"NONE","body":"I'm getting too much recursion in firefox and call stack exceeded in Safari when scrolling down and trying to call the onleave and change the fadingEffect to $.fn.fullpage.fadingEffect.turnOff();\r\n\r\nOnly in Chrome it works. \r\n\r\nHere's my code:\r\n\r\n`$('#fullpage').fullpage({\r\n          licenseKey: '285E5D71-D9E346C8-8BADA867-30AB58FD',\r\n          responsiveHeight: 330,\r\n          css3: true,\r\n         scrollingSpeed: 1200,\r\n         slidesNavigation: false,\r\n         controlArrows: true,\r\n            navigation: true,\r\n            scrollOverflow:true,\r\n            navigationPosition: 'right',\r\n            fadingEffectKey: 'd2F0ZXJmcm9udHdhcmVnZW0uYmVfMGJ4Wm1Ga2FXNW5SV1ptWldOMGpPNg==',\r\n            fadingEffect:false,\r\n          /*  afterLoad: function(anchorLink, index){\r\n                  var loadedSection = index[\"index\"];\r\n\r\n\r\n\r\n               if (loadedSection != 3)  {\r\n\r\n                            setTimeout(function(){$.fn.fullpage.fadingEffect.turnOff();},200);\r\n\r\n\r\n                  }\r\n                  if (loadedSection != 4)  {\r\n\r\n                              setTimeout(function(){$.fn.fullpage.fadingEffect.turnOff();},200);\r\n\r\n\r\n                   \r\n\r\n              },}*/\r\n              onLeave: function(index1, nextIndex, direction) {\r\n\r\n              index = index1[\"index\"];\r\n\r\n\r\n            /*  if (index == 2 && direction == 'down' && !hasBeenChanged) {\r\n                  $(\"#trans2\").addClass(\"transition\");\r\n                    $(\"#trans1\").addClass(\"transition\");\r\n              }*/\r\n\r\n\r\n              if (index == 1 && direction == 'down' && !hasBeenChanged) {\r\n                  $.fn.fullpage.fadingEffect.turnOn();\r\n                  hasBeenChanged = true;\r\n                  return !hasBeenChanged;\r\n              }\r\n\r\n              if (index == 4 && direction == 'up' && !hasBeenChanged) {\r\n                  hasBeenChanged = true;\r\n                  $.fn.fullpage.fadingEffect.turnOn();\r\n                  return !hasBeenChanged;\r\n              }\r\n              hasBeenChanged = false;\r\n\r\n          }\r\n\r\n        });`"},"comment":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/comments/425484435","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/3421#issuecomment-425484435","issue_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/3421","id":425484435,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTQ4NDQzNQ==","user":{"login":"alvarotrigo","id":1706326,"node_id":"MDQ6VXNlcjE3MDYzMjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1706326?v=4","gravatar_id":"","url":"https://api.github.com/users/alvarotrigo","html_url":"https://github.com/alvarotrigo","followers_url":"https://api.github.com/users/alvarotrigo/followers","following_url":"https://api.github.com/users/alvarotrigo/following{/other_user}","gists_url":"https://api.github.com/users/alvarotrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/alvarotrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvarotrigo/subscriptions","organizations_url":"https://api.github.com/users/alvarotrigo/orgs","repos_url":"https://api.github.com/users/alvarotrigo/repos","events_url":"https://api.github.com/users/alvarotrigo/events{/privacy}","received_events_url":"https://api.github.com/users/alvarotrigo/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T16:04:29Z","updated_at":"2018-09-28T16:04:29Z","author_association":"OWNER","body":"Please [contact me](https://alvarotrigo.com/#contact) with the email you used for the purchase. I'll send you the fixed version of the fading effect extension."}}
{"actor":{"display_login":"alvarotrigo"}}