Releases: samuelmeuli/react-magnifier
Releases · samuelmeuli/react-magnifier
v3.0.3
Fixed:
- Type error when using the component because of a missing default for the
zoomImgSrc
prop
v3.0.2
Fixed:
- Prop type definitions
- Variable name in README
v3.0.1
Fixed:
- Image paths with spaces can now be used (#11)
v3.0.0
Changed:
- Migrated codebase to TypeScript
- Updated Storybook to v5
Fixed:
- Event listeners are now removed correctly
v2.1.2
Fixed
- Image size recalculation bug on touch devices (#9)
v2.1.1
Fixed:
- Scroll event listener is now removed properly (#7)
- Image bounds are recalculated when entering the image with mouse/touch (fixes problems e.g. in carousel components, #5)
v2.1.0
Added:
className
prop (will be applied to the image wrapper)
- All remaining props are now passed to the
<img>
element (#4)
Fixed:
- Image bounds now get re-calculated when the scroll event is fired in any element
v2.0.1
Bug fixes:
- Fixed incorrect magnifying glass position after scrolling
v2.0.0
Breaking changes:
- Changed magnifying behavior close to the image borders (see #3)
Other changes:
- New
mgShowOverflow
prop (see README and new Storybook example)
- New
borderWidth
prop (see README)
- Performance improvements
- Updated dependencies (including major Babel and Storybook versions)