Skip to content

Commit

Permalink
fix: 1 more condition to compensate glide
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommezz committed May 13, 2020
1 parent 40e1222 commit cede58e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ export class ScrollBottomSheet<T extends any> extends Component<Props<T>> {
)
),
cond(
and(greaterThan(dragY, lastStartScrollY), isAndroid),
and(
greaterThan(dragY, lastStartScrollY),
isAndroid,
not(dragWithHandle)
),
call([], () => {
// This prevents the scroll glide from happening on Android when pulling down with inertia.
// It's not perfect, but does the job for now
Expand Down

0 comments on commit cede58e

Please sign in to comment.