react-zoom-pan-pinch 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,8 +41,8 @@ Do you like this library? Try out other projects
41
41
 
42
42
  #### Sources
43
43
 
44
- - [Demo](https://prc5.github.io/react-zoom-pan-pinch/?path=/story/examples-big-image--big-image)
45
- - [Docs](https://prc5.github.io/react-zoom-pan-pinch/?path=/story/docs-props--page)
44
+ - [Demo](https://BetterTyped.github.io/react-zoom-pan-pinch/?path=/story/examples-big-image--big-image)
45
+ - [Docs](https://BetterTyped.github.io/react-zoom-pan-pinch/?path=/story/docs-props--page)
46
46
 
47
47
  ## Key Features
48
48
 
package/dist/index.cjs.js CHANGED
@@ -1682,6 +1682,9 @@ var TransformWrapper = React__default["default"].forwardRef(function (props, ref
1682
1682
  React.useImperativeHandle(ref, function () { return getControls(instance); }, [instance]);
1683
1683
  React.useEffect(function () {
1684
1684
  instance.update(props);
1685
+ return function () {
1686
+ instance.cleanupWindowEvents();
1687
+ };
1685
1688
  }, [instance, props]);
1686
1689
  return React__default["default"].createElement(Context.Provider, { value: instance }, content);
1687
1690
  });