fix modal refresh glitch when modal content have been scrolled horizontally