Skip to content

Zooming in/out causes image preview to shift. #418

@Giwayume

Description

@Giwayume

This is a weird one. I noticed it because the trackpad on my new laptop reports scroll events every millisecond, which makes the scroll to zoom unusable in minipaint since it happens so fast. But that's beside the point here.

Reproduction

  1. Open any image.

Image

  1. Zoom way in (5000%+) and back out multiple times.
  2. Now notice if you zoom in any amount, the image is cut off on the top and the left.

Image

  1. And if you zoom out any amount, the image is cut off on the bottom and the right.

Image

Environment Info

Linux - Fedora 41
Firefox 135

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions