Reduce the number of calls to PDFView.getVisiblePages from updateViewarea