fix vertical scroll detection