Skip to content

Image and region rendering on secondary screen #2285

@kswang1029

Description

@kswang1029

Describe the bug

If we have a running CARTA session on one screen (eg MacBook Pro, deviceRatio=1) and move the browser window to the secondary screen (eg 27" 4K, deviceRatio=1), image and region rendering will be abnormal. Zoom/pan image is abnormal too. The issue happens as long as the deviceRatio changes for a living session.

To Reproduce
Steps to reproduce the behavior:

  1. on a Retina display, have an image loaded and create some regions
  2. move the browser to another screen (non-retina)
  3. try to zoom/pan image, move region etc to see the issue

Expected behavior
Regarding less the changing deviceRatio, image/region rendering and image pan/zoom should be still normal.

Platform info (please complete the following information):

  • OS [e.g. macOS Monterey]: macOS Ventura
  • Browser [e.g. chrome, safari, electron app]: electron / chrome / firefox / safari
  • Browser version [e.g. 22]:
  • Backend branch [e.g. dev, v3b2 release]: dev, v4-stable
  • Frontend branch [e.g. dev, v3b2 release]: dev, v4-stable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingscreen dpiFor issues relating to devicePixelRatio

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions