Skip to content

backplateImgUrl does not adjust to fit to the canvas when zoom in/zoom out #199

@hoan-anh

Description

@hoan-anh

Describe the bug
backplateImgUrl does not adjust to fit to the canvas when zoom in/zoom out, its size stays the same.

Painterro version
v1.2.87

To Reproduce
Steps to reproduce the behavior:

  1. Initiate Painterro with the backplateImgUrl parameter:
    Painterro({
    backplateImgUrl: 'image-url'
    }).show()

  2. Use Ctrl + scroll to zoom in/out of the canvas

Expected behavior
The backplate img should also zoom in/out to fit with the canvas

Screenshots
Before zooming:

Image

After zooming in:

Image

Browser
Google Chrome 133 on Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions