react-magnifier

🔍 React image zoom component

MIT License

Downloads
26K
Stars
149
Committers
4

Bot releases are hidden (Show)

react-magnifier - v3.0.4 Latest Release

Published by samuelmeuli about 5 years ago

Changed:

  • Target ES3 for compatibility with older browsers (#13) 1beafc1

https://github.com/samuelmeuli/react-magnifier/compare/v3.0.3...v3.0.4

react-magnifier - v3.0.3

Published by samuelmeuli about 5 years ago

Fixed:

  • Type error when using the component because of a missing default for the zoomImgSrc prop
react-magnifier - v3.0.2

Published by samuelmeuli about 5 years ago

Fixed:

  • Prop type definitions
  • Variable name in README
react-magnifier - v3.0.1

Published by samuelmeuli over 5 years ago

Fixed:

  • Image paths with spaces can now be used (#11)
react-magnifier - v3.0.0

Published by samuelmeuli over 5 years ago

Changed:

  • Migrated codebase to TypeScript
  • Updated Storybook to v5

Fixed:

  • Event listeners are now removed correctly
react-magnifier - v2.1.2

Published by samuelmeuli almost 6 years ago

Fixed

  • Image size recalculation bug on touch devices (#9)
react-magnifier - v2.1.1

Published by samuelmeuli almost 6 years ago

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)
react-magnifier - v2.1.0

Published by samuelmeuli almost 6 years ago

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
react-magnifier - v2.0.1

Published by samuelmeuli almost 6 years ago

Bug fixes:

  • Fixed incorrect magnifying glass position after scrolling
react-magnifier - v2.0.0

Published by samuelmeuli almost 6 years ago

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)
react-magnifier - v1.1.0

Published by samuelmeuli about 6 years ago

New features:

  • The number of times the magnifying glass is updated is automatically limited (throttled) to improve browser performance