Added scroll detection

Signed-off-by: Pete McCarthy <petemccarthy@gmail.com>