Fix drag-to-pan after click on rotated viewer