Skip to content

Commit

Permalink
JI-6555 prevent default scroll and lti scroll (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwenillia authored Jul 31, 2024
1 parent a63e2c9 commit bd6fc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export default class InteractiveBook extends H5P.EventDispatcher {
const container = this.pageContent.container;
container.scrollBy(0, -container.scrollHeight);
}
else {
else if (H5PIntegration.context !== 'lti') {
this.statusBarHeader.wrapper.scrollIntoView(true);
}
});
Expand Down Expand Up @@ -1013,7 +1013,7 @@ export default class InteractiveBook extends H5P.EventDispatcher {
this.setActivityStarted();

// Focus header progress bar when cover is removed
this.statusBarHeader.progressBar.progress.focus();
this.statusBarHeader.progressBar.progress.focus({ preventScroll: true });
});
}
else {
Expand Down

0 comments on commit bd6fc9a

Please sign in to comment.