Skip to content

Commit 795da2d

Browse files
committed
fix: release touch on scrollview
1 parent 199207c commit 795da2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,8 @@ export class PersistentBottomSheet extends GridLayout {
386386
if (this.scrollViewAtTop) {
387387
this.scrollViewAtTop = this.scrollView.verticalOffset === 0;
388388
const y = touchY - (this.lastTouchY || touchY);
389-
if (y !== 0) {
390-
const totalDelta = this.translationY + y;
391-
this.computeAndAnimateEndGestureAnimation(totalDelta);
392-
}
389+
const totalDelta = this.translationY + y;
390+
this.computeAndAnimateEndGestureAnimation(totalDelta);
393391
}
394392
}
395393
this.isScrollEnabled = true;

0 commit comments

Comments
 (0)