Skip to content

Commit eb317d4

Browse files
committed
fix(nav): clickblock is disabled longer
fixes #8713
1 parent ba557ac commit eb317d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/navigation/nav-controller-base.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export class NavControllerBase extends Ion implements NavController {
621621
if (duration > DISABLE_APP_MINIMUM_DURATION) {
622622
// if this transition has a duration and this is the root transition
623623
// then set that the app is actively disabled
624-
this._app.setEnabled(false, duration);
624+
this._app.setEnabled(false, duration + ACTIVE_TRANSITION_OFFSET);
625625
}
626626

627627
// cool, let's do this, start the transition
@@ -802,7 +802,9 @@ export class NavControllerBase extends Ion implements NavController {
802802
}
803803

804804
swipeBackStart() {
805-
if (this.isTransitioning() || this._queue.length > 0) return;
805+
if (this.isTransitioning() || this._queue.length > 0) {
806+
return;
807+
}
806808

807809
// default the direction to "back";
808810
const opts: NavOptions = {
@@ -822,7 +824,7 @@ export class NavControllerBase extends Ion implements NavController {
822824
if (this._sbTrns && this._sbGesture) {
823825
// continue to disable the app while actively dragging
824826
this._app.setEnabled(false, ACTIVE_TRANSITION_DEFAULT);
825-
this.setTransitioning(true);
827+
this.setTransitioning(true, ACTIVE_TRANSITION_DEFAULT);
826828

827829
// set the transition animation's progress
828830
this._sbTrns.progressStep(stepValue);

0 commit comments

Comments
 (0)