Skip to content

Commit 31665ad

Browse files
committed
chore: should be a little smoother
1 parent 00ab489 commit 31665ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export class PersistentBottomSheet extends GridLayout {
470470
// stepIndexProperty.nativeValueChange
471471
// this.stepIndex = stepIndex;
472472
stepIndexProperty.nativeValueChange(this, stepIndex);
473-
this.animateToPosition(viewHeight - destSnapPoint, Math.min(distance, OPEN_DURATION));
473+
this.animateToPosition(viewHeight - destSnapPoint, Math.min(distance * 2, OPEN_DURATION));
474474
}
475475
onGestureTouch(args: GestureTouchEventData) {
476476
const data = args.data;
@@ -527,7 +527,7 @@ export class PersistentBottomSheet extends GridLayout {
527527
if (data.target) {
528528
return Object.assign(
529529
{
530-
curve: AnimationCurve.easeInOut,
530+
curve: AnimationCurve.easeOut,
531531
duration,
532532
},
533533
transformAnimationValues(trData[k])
@@ -536,7 +536,7 @@ export class PersistentBottomSheet extends GridLayout {
536536
return Object.assign(
537537
{
538538
target: this[k],
539-
curve: AnimationCurve.easeInOut,
539+
curve: AnimationCurve.easeOut,
540540
duration,
541541
},
542542
transformAnimationValues(trData[k])

0 commit comments

Comments
 (0)