bloom-player 2.17.0 → 2.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A library for displaying Bloom books in iframes or WebViews",
|
|
4
4
|
"author": "SIL Global",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "2.17.
|
|
6
|
+
"version": "2.17.2",
|
|
7
7
|
"private": false,
|
|
8
8
|
"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working": "",
|
|
9
9
|
"sideEffects": false,
|
package/src/shared/scrolling.ts
CHANGED
|
@@ -106,6 +106,11 @@ export function addScrollbarsToPage(
|
|
|
106
106
|
entries.forEach((entry) => {
|
|
107
107
|
countOfObserversThatHaveReported++;
|
|
108
108
|
ob.unobserve(entry.target); // don't want to keep getting them, or leak observers
|
|
109
|
+
if (!entry.target.parentElement) {
|
|
110
|
+
// We can't do anything with this target. It must be in another DOM. (BL-15508)
|
|
111
|
+
// I'm not sure how that can happen, but with iframes around, who knows?
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
109
114
|
const isBubble = !!entry.target.closest(
|
|
110
115
|
kLegacyCanvasElementSelector,
|
|
111
116
|
);
|