I'm trying to do a specific task when the user scrolls into a particular area.
The issue I'm having is, when the user scrolls at a normal speed, I can capture the current scrollTop position, and trigger the desired function.
If, however, the user scrolls faster, scrollTop seems to only to be captured when the scrolling has slowed down back to a normal speed - meaning the user is able to completely scroll past the area where I want the function to trigger.
I need some way of being updated with every scrollTop position at every scroll speed.
I'm simply using:
$('body').scroll(function(e)
{
intScrollPoint = $(body).scrollTop();
});
Any ideas?