Skip to content

Commit 8af7caf

Browse files
committed
fix: Drawer swipe event throw error
close ant-design/ant-design#32904
1 parent 25623d0 commit 8af7caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DrawerChild.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class DrawerChild extends React.Component<IDrawerChildProps, IState> {
167167
};
168168

169169
private removeMoveHandler = (e: React.TouchEvent | TouchEvent) => {
170-
if (e.changedTouches.length > 1) {
170+
if (e.changedTouches.length > 1 || !this.startPos) {
171171
return;
172172
}
173173
const currentTarget = e.currentTarget as HTMLElement;

0 commit comments

Comments
 (0)