cropt icon indicating copy to clipboard operation
cropt copied to clipboard

Fix boundary enforcement with large delta at the boundary

Open taye opened this issue 1 year ago • 0 comments

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.

taye avatar Oct 08 '24 15:10 taye