Fixed responsiveness of the document viewer.