ember-nav-stack 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -161,6 +161,8 @@ export default class NavStack extends Component {
|
|
|
161
161
|
let { hammer, gesture } = this;
|
|
162
162
|
gesture.unregister(this, hammer.get('pan'));
|
|
163
163
|
hammer.off('pan');
|
|
164
|
+
hammer.destroy();
|
|
165
|
+
this.hammer = null;
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
@action
|
|
@@ -398,7 +400,7 @@ export default class NavStack extends Component {
|
|
|
398
400
|
}
|
|
399
401
|
|
|
400
402
|
disablePanRecognizer() {
|
|
401
|
-
this.hammer
|
|
403
|
+
this.hammer?.get('pan').set({ enable: false });
|
|
402
404
|
}
|
|
403
405
|
|
|
404
406
|
transitionDidBegin() {
|
|
@@ -443,7 +445,7 @@ export default class NavStack extends Component {
|
|
|
443
445
|
this.backX = this.startingX + itemWidth;
|
|
444
446
|
this.thresholdX = itemWidth / 2;
|
|
445
447
|
this.canNavigateBack = this.back && this.stackDepth > 1;
|
|
446
|
-
this.hammer
|
|
448
|
+
this.hammer?.get('pan').set({ enable: true, threshold: 9 });
|
|
447
449
|
}
|
|
448
450
|
|
|
449
451
|
@action
|
|
@@ -628,11 +630,11 @@ export default class NavStack extends Component {
|
|
|
628
630
|
}
|
|
629
631
|
|
|
630
632
|
preferRecognizer(recognizer) {
|
|
631
|
-
this.hammer
|
|
633
|
+
this.hammer?.get('pan').requireFailure(recognizer);
|
|
632
634
|
}
|
|
633
635
|
|
|
634
636
|
stopPreferringRecognizer(recognizer) {
|
|
635
|
-
this.hammer
|
|
637
|
+
this.hammer?.get('pan').dropRequireFailure(recognizer);
|
|
636
638
|
}
|
|
637
639
|
|
|
638
640
|
getTestContainerEl() {
|