MOBILE-2795 course: Scroll top on section change

main
Pau Ferrer Ocaña 2019-01-10 12:01:55 +01:00
parent 1c588a214c
commit bf509a7fae
1 changed files with 2 additions and 0 deletions

View File

@ -297,6 +297,8 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy {
setTimeout(() => {
this.domUtils.scrollToElementBySelector(this.content, '#core-course-module-' + this.moduleId);
}, 200);
} else {
this.domUtils.scrollToTop(this.content, 0);
}
}