fix horizontal scroll but lag bug