{"action":"closed","issue":{"url":"https://api.github.com/repos/imakewebthings/waypoints/issues/382","labels_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/382/comments","events_url":"https://api.github.com/repos/imakewebthings/waypoints/issues/382/events","html_url":"https://github.com/imakewebthings/waypoints/issues/382","id":59130007,"number":382,"title":"Event not firing","user":{"login":"henlnhl","id":11217647,"avatar_url":"https://avatars.githubusercontent.com/u/11217647?v=3","gravatar_id":"","url":"https://api.github.com/users/henlnhl","html_url":"https://github.com/henlnhl","followers_url":"https://api.github.com/users/henlnhl/followers","following_url":"https://api.github.com/users/henlnhl/following{/other_user}","gists_url":"https://api.github.com/users/henlnhl/gists{/gist_id}","starred_url":"https://api.github.com/users/henlnhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henlnhl/subscriptions","organizations_url":"https://api.github.com/users/henlnhl/orgs","repos_url":"https://api.github.com/users/henlnhl/repos","events_url":"https://api.github.com/users/henlnhl/events{/privacy}","received_events_url":"https://api.github.com/users/henlnhl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T19:38:56Z","updated_at":"2015-04-16T15:04:10Z","closed_at":"2015-04-16T15:04:10Z","body":"I have tried to include waypoints into my Struts 2 web application. The purpose was to grab a scroll event and hide/show a couple different elements.  For some reason the event is not being captured when I scroll.  The event will capture after a page resize but not before.  Here is the code in question, the first console message shows that Im in the ready function but the second does not show upon scrolling.  Is this a bug?  \r\n\r\n```js\r\n$(document).ready(function(){\r\n  var tabContainerHeight = $('.tabContainer').outerHeight(true);\r\n  var origTblWidth;\r\n  console.log('inside ready func');\r\n  $('#origTbl').waypoint({\r\n    handler: function(event, direction) {\r\n      if(direction === \"down\"){\r\n         origTblWidth = $('#origTbl').width();\r\n         $('#tHeader').addClass('sticky');\r\n         $('#tHeader').width(origTblWidth);\r\n         $('.sticky').css('top', tabContainerHeight);\r\n         $('#tHeader').removeClass('elHide');\r\n      }else{\r\n         $('#tHeader').addClass('elHide');\r\n         $('#origTbl tr:first-child').removeClass('sticky');\r\n      }\r\n      console.log('waypoint reached');\r\n    }\r\n  });\r\n\r\n  $(window).on('resize', function(){\r\n    origTblWidth = $('#origTbl').width();\r\n    $('#tHeader').width(origTblWidth);\r\n  });\r\n});\r\n```"}}