better auto scroll detection