bug fixed for window manual scroll