From c69ac4d9e4bde2dc5f2062c39c73c47fee7226f7 Mon Sep 17 00:00:00 2001 From: Gwen Tripet-Costet Date: Thu, 1 Aug 2024 10:39:11 +0200 Subject: [PATCH 1/2] JI-6555 pass by contentData instead of H5PIntegration --- src/scripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/app.js b/src/scripts/app.js index 754c1a5..52c3570 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -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 (this.contentData.isInLti) { this.statusBarHeader.wrapper.scrollIntoView(true); } }); From a76516a417897af77ae6f8df4accb46cdfee828f Mon Sep 17 00:00:00 2001 From: Gwen Tripet-Costet Date: Thu, 1 Aug 2024 10:50:11 +0200 Subject: [PATCH 2/2] JI-6555 remove `this` --- src/scripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/app.js b/src/scripts/app.js index 52c3570..c4500bb 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -484,7 +484,7 @@ export default class InteractiveBook extends H5P.EventDispatcher { const container = this.pageContent.container; container.scrollBy(0, -container.scrollHeight); } - else if (this.contentData.isInLti) { + else if (contentData.isInLti) { this.statusBarHeader.wrapper.scrollIntoView(true); } });