Skip to content

Support Touch and Mouse With a Single Component

Compare
Choose a tag to compare
@ethanselzer ethanselzer released this 04 Aug 04:42
· 86 commits to master since this release

Breaking Changes

Previous to v2.x, touch and mouse environments were supported by separate components. In v2.x touch and mouse are supported by a single component. To upgrade, change imports of ReactImageMagnifyTouch to the default export. Example:

Change:
import { ReactImageMagnifyTouch } from 'react-image-magnify';
To:
import ReactImageMagnify from 'react-image-magnify';

Release Notes

Support touch and mouse environments with a single export
Correct possible line on shaded lens
Upgrade dependencies
Support CJS, ES6, and UMD module types