Custom jQuery event that detects upward and downward scrolling