MOBILE-2795 course: Scroll top on section change
This commit is contained in:
parent
1c588a214c
commit
bf509a7fae
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user