cropt
cropt copied to clipboard
Fix boundary enforcement with large delta at the boundary
Currently, dragging the image so that the delta would move the image out of the viewport in an axis would cause cropt to ignore the drag delta in that axis, leaving a gap between the image and the viewport edges. This can be reproduced in the current demos by clicking and trying to drag the image quickly past the edges of the viewport.
This PR instead clamps to the edges.