Skip to content

zooming in the right side. #1

@KamiPanda

Description

@KamiPanda

When ever the image is zoomed with the scaleFactor > 1f, parts of the right side begins to get cut off because the right side bound being reached.

if (x + w > size.x)
x = size.x - w;
if (y + h > size.y)
y = size.y - h;

if the scalefactor < 1f in the above code, the bounds are being cut off way too early because w is greater than w/scalefactor

however if we change the piece of code to include the scalefactors the viewport becomes unstable

Is there a way to fix the size of the viewport so that when the viewport gets smaller and smaller we are still able to show the right side?

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