Skip to content

Commit

Permalink
JI-6555 Prevent focus at all in lti (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwenillia authored Aug 1, 2024
1 parent bd6fc9a commit 590c1d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 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 if (H5PIntegration.context !== 'lti') {
else if (H5PIntegration.context !== 'lti') { // Will be changed in JI-6581 to not use H5PIntegration
this.statusBarHeader.wrapper.scrollIntoView(true);
}
});
Expand Down Expand Up @@ -1013,7 +1013,10 @@ export default class InteractiveBook extends H5P.EventDispatcher {
this.setActivityStarted();

// Focus header progress bar when cover is removed
this.statusBarHeader.progressBar.progress.focus({ preventScroll: true });
// Will be changed in JI-6581 to not use H5PIntegration
if (H5PIntegration.context !== 'lti') {
this.statusBarHeader.progressBar.progress.focus();
}
});
}
else {
Expand Down

0 comments on commit 590c1d0

Please sign in to comment.