universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

uri fragment "xywh" applies to combination of pages when two-page-view is enabled

Open nicolasfranck opened this issue 5 years ago • 0 comments

UV version:

 universalviewer@3

I'm submitting a:

  • [x] bug report
  • [ ] feature request => please use the user stories repo
  • [ ] support request => Please do not submit support requests here, use stackoverflow

Current behavior:

Expected behavior:

Steps to reproduce:

  • use a manifest that has viewingHint paged
  • make sure pageMode is enabled in the configuration of the UV.
  • set the fragment parameter cv to the index of a canvas within the manifest that is shown in a two-page-view at the right side
  • set the fragment parameter xywh to any (valid) value

What happens: xywh is interpreted as the coordinates of the "whole", and not of the canvas itself. As a result the left page is focused and not the right page.

Possible consequence is that this introduces more complexity to calculate the right coordinates at runtime when replacing the uri.

Related code:

// insert any relevant code here

Other information:

nicolasfranck avatar Apr 15 '20 13:04 nicolasfranck