Skip to content

Commit

Permalink
JI-6581 update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
makmentins committed Dec 13, 2024
1 parent 0ea5c05 commit f7724a3
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 @@ -485,6 +485,7 @@ export default class InteractiveBook extends H5P.EventDispatcher {
container.scrollBy(0, -container.scrollHeight);
}
else {
console.log('should i scroll or nah?', event)
if (event.data !== false) { // Note: undefined is treated as true here
this.statusBarHeader.wrapper.scrollIntoView(true);
}
Expand Down Expand Up @@ -1015,8 +1016,7 @@ export default class InteractiveBook extends H5P.EventDispatcher {
// setActivityStarted() checks if it has been run before
this.setActivityStarted();

// Focus header progress bar when cover is removed
// Will be changed in JI-6581 to not use H5PIntegration
// Focus header progress bar when cover is removed by user action
if (event.data) {
this.statusBarHeader.progressBar.progress.focus();
}
Expand Down

0 comments on commit f7724a3

Please sign in to comment.