react-magic-card 0.1.4 → 0.1.5

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.
@@ -144,7 +144,7 @@ const MagicCircle = ({ images, height, width, radius, controller, start, dynamic
144
144
  elm.removeEventListener('mouseover', enterControll);
145
145
  elm.removeEventListener('mouseout', leaveControll);
146
146
  elm.removeEventListener('touchmove', enterControll);
147
- elm.addEventListener('touchend', leaveControll);
147
+ elm.removeEventListener('touchend', leaveControll);
148
148
  });
149
149
  };
150
150
  }, []);
@@ -138,7 +138,7 @@ const MagicStraight = ({ images, height, width, start, controller, wheelDelay, v
138
138
  elm.removeEventListener('mouseover', enterControll);
139
139
  elm.removeEventListener('mouseout', leaveControll);
140
140
  elm.removeEventListener('touchmove', enterControll);
141
- elm.addEventListener('touchend', leaveControll);
141
+ elm.removeEventListener('touchend', leaveControll);
142
142
  });
143
143
  };
144
144
  }, []);
@@ -11,7 +11,6 @@ const PickImage = ({ onClick, classPick, hasPick, hasShift, argRef, argKey, src,
11
11
  zIndex: zIndex,
12
12
  opacity: hasPick ? 1 : 0,
13
13
  pointerEvents: hasPick ? 'auto' : 'none',
14
- touchAction: hasPick ? 'auto' : 'none',
15
14
  visibility: hasPick ? 'visible' : 'hidden',
16
15
  backdropFilter: `blur(${blur}px)`,
17
16
  background: white
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magic-card",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "image gallery component with framer motion",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",