fix scrolling in pdf.js view (closes #306)