project-booster-vue 10.18.1 → 10.18.2
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/package.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
<div class="pb-scenario__step-container__before">
|
|
31
31
|
<div
|
|
32
32
|
class="pb-scenario__step-container__before-step xl"
|
|
33
|
+
:class="{ auto: state?.displayedStep?.slots?.beforeContent?.component !== 'MPbProgress' }"
|
|
33
34
|
ref="beforeContent"
|
|
34
35
|
v-if="
|
|
35
36
|
state.displayedStep &&
|
|
@@ -591,9 +592,6 @@ export default defineComponent({
|
|
|
591
592
|
stepAnimationTimeoutId.value = setTimeout(() => {
|
|
592
593
|
nextTick(() => {
|
|
593
594
|
state.value.displayedStep = state.value.currentStep;
|
|
594
|
-
setTimeout(() => {
|
|
595
|
-
scrollToTop();
|
|
596
|
-
}, 200);
|
|
597
595
|
});
|
|
598
596
|
}, STEP_ANIMATION_DELAY);
|
|
599
597
|
};
|
|
@@ -676,15 +674,6 @@ export default defineComponent({
|
|
|
676
674
|
resetHistoryFromCurrentPosition();
|
|
677
675
|
}, 150);
|
|
678
676
|
};
|
|
679
|
-
const scrollToTop = () => {
|
|
680
|
-
const top = window.pageYOffset + (pbScenario?.value?.getBoundingClientRect().top ?? 0);
|
|
681
|
-
|
|
682
|
-
window.scroll({
|
|
683
|
-
top,
|
|
684
|
-
left: 0,
|
|
685
|
-
behavior: 'smooth',
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
677
|
const disablePointerEvents = () => {
|
|
689
678
|
noPointerEvents.value = true;
|
|
690
679
|
|
|
@@ -812,6 +801,10 @@ $slide-sticky-bottom-animation-delay: $slide-animation-duration + 0.45s;
|
|
|
812
801
|
&__before-step {
|
|
813
802
|
width: 100%;
|
|
814
803
|
margin: 7.5rem auto 0;
|
|
804
|
+
|
|
805
|
+
&.auto {
|
|
806
|
+
margin: 0;
|
|
807
|
+
}
|
|
815
808
|
}
|
|
816
809
|
}
|
|
817
810
|
|