Skip to content

Commit

Permalink
fix(Sheet): start touch event detection (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arucard89 authored Jun 19, 2024
1 parent 71a2f68 commit b655fec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Sheet/SheetContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ class SheetContent extends React.Component<SheetContentInnerProps, SheetContentS
return;
}

if (!this.state.startY) {
this.onContentTouchStart(e);
return;
}

const {startScrollTop, swipeAreaTouched} = this.state;

if (
Expand Down

0 comments on commit b655fec

Please sign in to comment.