Fix active menu scroll detection