Skip to content

Why does element capture double the devicePixelRatio? #44

Closed
@eyaler

Description

@eyaler
  1. Goto https://element-capture-demo.glitch.me/
  2. Open devtools and type devicePixelRatio to observe the value is e.g. 1
  3. Capture and restrict to Element
  4. Type devicePixelRatio again and observe it has doubled, e.g. 2

The changing of devicePixelRatio is messing up my canvases...

I am not sure if this is an element-capture issue or a general screen capture issue, and I did not find answers in the specs.

Is this intended behavior? If so why? and how could I deal with it? I also tried to play with resizeMode and logicalSurface properties to prevent this, but they had no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions