Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/src/components/router-outlet/router-outlet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export class RouterOutlet implements ComponentInterface, NavOutlet {
this.ani.easing('cubic-bezier(1, 0, 0.68, 0.28)');
newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], step)[0];
} else {
newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], step)[0];
this.ani.easing('linear');

newStepValue += step;
}

this.ani.progressEnd(shouldComplete ? 1 : 0, newStepValue, dur);
Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/gesture/swipe-back.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const createSwipeBackGesture = (
let realDur = 0;
if (missingDistance > 5) {
const dur = missingDistance / Math.abs(velocity);
realDur = Math.min(dur, 540);
realDur = Math.min(dur, 200);
}

onEndHandler(shouldComplete, stepValue <= 0 ? 0.01 : clamp(0, stepValue, 0.9999), realDur);
Expand Down
Loading