@hmcts/media-viewer 3.0.3-RC.3 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5481,7 +5481,12 @@ class PdfViewerComponent {
5481
5481
  return +newZoomValue.toFixed(2);
5482
5482
  }
5483
5483
  goToDestination(destination) {
5484
+ const currentRotation = this.rotation;
5485
+ this.rotateDocument(360 - this.rotation);
5484
5486
  this.pdfWrapper.navigateTo(destination);
5487
+ setTimeout(() => {
5488
+ this.rotateDocument(currentRotation);
5489
+ }, 10);
5485
5490
  }
5486
5491
  getCurrentPageNumber() {
5487
5492
  return this.pdfWrapper.getPageNumber();