Fixed a backward transition issue.
This commit is contained in:
parent
4bb5da9ad6
commit
3c8cf08051
@ -470,21 +470,26 @@ class TourPagesService extends BaseService {
|
||||
let pageModified = false;
|
||||
|
||||
for (const element of uiSchema.elements) {
|
||||
// Only process forward elements with transitions that don't have reversed yet
|
||||
// Process both forward elements AND back elements with their own transition
|
||||
const isForward = TourPagesService.isForwardElementWithTarget(element);
|
||||
const isBackWithTransition =
|
||||
TourPagesService.isBackElement(element) &&
|
||||
element.transitionVideoUrl;
|
||||
|
||||
log.debug({
|
||||
pageId: page.id,
|
||||
elementType: element.type,
|
||||
navType: element.navType,
|
||||
isForward,
|
||||
isBackWithTransition,
|
||||
hasTransitionVideo: Boolean(element.transitionVideoUrl),
|
||||
hasReverseVideo: Boolean(element.reverseVideoUrl),
|
||||
targetPageSlug: element.targetPageSlug,
|
||||
targetPageId: element.targetPageId,
|
||||
}, 'Checking element in regeneration');
|
||||
|
||||
if (!isForward) {
|
||||
// Skip if neither forward nor back-with-transition
|
||||
if (!isForward && !isBackWithTransition) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user