Fixed problem with mouse and viewer when document is scrolled