diff --git a/docs/release-notes-editor.md b/docs/release-notes-editor.md index b1d8ff014fb1dc316d6361c2374b203f210d8a9c..5447e3b9d4e88436de0485f5d68191509e5511a7 100644 --- a/docs/release-notes-editor.md +++ b/docs/release-notes-editor.md @@ -1,6 +1,9 @@ Editor ====== -##1.35.2 +## 1.35.3 + + +## 1.35.2 ### Verbesserungen - Wendet die Eigenschaft "Schreibgeschützt" auf Formel Elemente an - Auswahllisten, die nur ein Element zulassen, werden von diesem Element komplett ausgefüllt diff --git a/docs/release-notes-player.md b/docs/release-notes-player.md index af5bb6e21bf18e35bff6a4be6c6bdb2208b75190..f0b78eb06de98612fddef0878ed63118928f15db 100644 --- a/docs/release-notes-player.md +++ b/docs/release-notes-player.md @@ -1,5 +1,8 @@ Player ====== +## 1.28.3 +### Fehlerbehebungen +- Korrigiert das Scroll-Verhalten von versteckten Abschnitten mit unterschiedlichen Verzögerungen ## 1.28.2 ### Verbesserungen diff --git a/projects/player/src/app/directives/section-visibility-handling.directive.ts b/projects/player/src/app/directives/section-visibility-handling.directive.ts index cfcd928e80920db866f30f2c6446353fdf8e19b8..5255465a624373ba4a2cc12aac6296a84e4bcb1e 100644 --- a/projects/player/src/app/directives/section-visibility-handling.directive.ts +++ b/projects/player/src/app/directives/section-visibility-handling.directive.ts @@ -22,7 +22,8 @@ export class SectionVisibilityHandlingDirective { this.isScrollSection = this.isVisible ? false : this.pageSections - .filter(pageSection => pageSection.activeAfterID === this.section.activeAfterID) + .filter(pageSection => pageSection.activeAfterID === this.section.activeAfterID && + pageSection.activeAfterIdDelay === this.section.activeAfterIdDelay) .findIndex(section => section === this.section) === 0; if (this.mediaStatusChanged) { @@ -38,8 +39,10 @@ export class SectionVisibilityHandlingDirective { if (!this.isVisible) { this.setVisibility(id === this.section.activeAfterID); if (this.isScrollSection) { - this.elementRef.nativeElement.style.scrollMargin = `${window.innerHeight / 3}px`; - this.elementRef.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start' }); + this.elementRef.nativeElement.style.scrollMarginTop = 100; + setTimeout(() => { + this.elementRef.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start' }); + }); } } }