Skip to content

Opening an image to create a document has a half-pixel offset #3670

@Keavon

Description

@Keavon

If we drag and drop an image file (bitmap or SVG) into a blank editor, the image ends up being placed with a half-pixel offset within the artboard it's in. However, there are a few specific cases:

  • On desktop, this is a half-pixel offset on only the X-axis, so + (0.5, 0.0)
  • On web, this is a half-pixel offset on both axes, so + (0.5, 0.5)
  • On web and desktop, there is no offset if the image is dragged into a freshly-loaded editor showing the welcome screen (maybe because Vello hasn't initialized and there's a race condition?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Short-Term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions