Releases: dominictobias/react-image-crop
Releases · dominictobias/react-image-crop
3.0.11
- Fixed
pixelCrop
sometimes exceeding the bounds of the image due to number rounding. getPixelCrop(image, percentCrop)
is also now exposed for some edge use cases. #167
3.0.10
Fixes
- Set
{ passive: false }
to prevent some modern mobile browsers from defaulting it to true and breaking the use of event.preventDefault
#157
3.0.9
- Add
!default
to SASS variables to make them overridable #151 #153
- Fix hard-coded 2px offset on drag handle position calc, so that changing drag-bar size using variables keeps them centred #152
3.0.8
Fixes
- Ensure wide images work with makeAspectCrop #144
Features
- Allowed custom styles on image and wrapper elements #141
- Expose method to contain crop to image boundaries #145
3.0.7
- Another non-functional fix to
/dist
bundles. The minified prod build was in the wrong file so it's now swapped and correct #138
3.0.6
- Fix exception when not passing a crop object into the component (existing since v3.0.0) #132
3.0.5
- Another non-functional release relating to #136, which should satisfy all the ways of consuming the module as UMD (from
/dist
).
3.0.4
- Fixes #136 issue in 3.0.3 which was causing a webpack
React
vs react
casing warning.
Update: This version shouldn't be used when consuming the /dist module (e.g. via a CDN)
3.0.3
- Add back the /dist folder to the repo for CDNs #134
(No functional changes to code)
3.0.2
- Pixel crop should be calculated using naturalWidth and naturalHeight #122