react-magic-card 0.0.5 → 0.0.6

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.
@@ -74,11 +74,11 @@ const MagicCircle = ({ images, width, height, radius, controller, start, dynamic
74
74
  // Main functional, exit function if ref and hasDelayed does not exist.
75
75
  (0, react_1.useEffect)(() => {
76
76
  const range = ref.current;
77
- if (!range || !hasDelayed)
78
- return;
79
77
  const timeId = setTimeout(() => {
80
78
  setHasDelayed(true);
81
79
  }, wheelDelay);
80
+ if (!range || !hasDelayed)
81
+ return;
82
82
  // Add handle event when component mount and deps update.
83
83
  range.addEventListener('wheel', handleWheel);
84
84
  range.addEventListener('touchstart', handleTouchStart);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magic-card",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "image gallery component with framer motion",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",