odyniec / imgareaselect

ImgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).
http://odyniec.net/projects/imgareaselect/
686 stars 197 forks source link

fixed wrong selection and position #74

Open marc-mabe opened 9 years ago

marc-mabe commented 9 years ago

... if original image size pass exactly into the HTML image container. e.g. if the image is 600x600 and the container is 300x300 the selection results into:

x2 = 301
y2 = 301

Additional x1 and y1 were calculated into negative values