WorldMap icon indicating copy to clipboard operation
WorldMap copied to clipboard

zooming in the right side.

Open KamiPanda opened this issue 12 years ago • 1 comments

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?

KamiPanda avatar Feb 23 '13 03:02 KamiPanda

Hi KamiPanda,

Please check out the latest version on GitHub -- it should address your concerns.

Thanks, John

John Lombardo [email protected]

On Fri, Feb 22, 2013 at 7:01 PM, KamiPanda [email protected] wrote:

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?

— Reply to this email directly or view it on GitHubhttps://github.com/johnnylambada/WorldMap/issues/1.

johnnylambada avatar Mar 20 '13 16:03 johnnylambada