benlumley/jQuery-PanZoom — pull request #8 by semanticart (2012-02-17 19:45:20+00:00)
Title: fix for a bug where the zoomed image would jump downward and to the right when zooming out further than the min_width/height

You can see this in the example, just hold down zoom out until the image shrinks very small. It will then jump downward and to the right. This behavior is especially unfortunate because zooming back in doesn't re-center things.

This patch prevents undesired panning once the image has reached the minimum size.