@dtdot/lego 0.19.11 → 0.19.12
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.
|
@@ -117,6 +117,9 @@ const InlineCard = ({ children, size, value, onClick, gestureLeftIcon, gestureLe
|
|
|
117
117
|
const [gestureLeftActivated, setGestureLeftActivated] = useState(false);
|
|
118
118
|
const opacity = useTransform(x, xInput, ['1', '0']);
|
|
119
119
|
const handleDragEnd = (e, panInfo) => {
|
|
120
|
+
if (e.type === 'pointercancel') {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
120
123
|
// approx xInputMin * 3
|
|
121
124
|
if (panInfo.offset.x < -180 && onGestureLeft) {
|
|
122
125
|
setGestureLeftActivated(true);
|
|
@@ -59,6 +59,9 @@ const ErrorMessage = styled(motion.div) `
|
|
|
59
59
|
left: 38px;
|
|
60
60
|
bottom: 0;
|
|
61
61
|
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
touch-action: none;
|
|
64
|
+
|
|
62
65
|
font-family: ${(props) => props.theme.fonts.default.family};
|
|
63
66
|
font-size: ${(props) => props.theme.fonts.default.size};
|
|
64
67
|
color: ${(props) => props.theme.colours.statusDanger.main};
|
|
@@ -71,6 +74,9 @@ const ErrorContainer = styled(motion.div) `
|
|
|
71
74
|
display: flex;
|
|
72
75
|
align-items: center;
|
|
73
76
|
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
touch-action: none;
|
|
79
|
+
|
|
74
80
|
color: ${(props) => props.theme.colours.statusDanger.main};
|
|
75
81
|
`;
|
|
76
82
|
const ErrorInner = styled.div `
|