Fixed auto-scrolling when preview contains images