bloom-player 2.19.1 → 2.19.2-alpha.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.19.1",
6
+ "version": "2.19.2-alpha.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,
@@ -164,7 +164,6 @@ export function prepareActivity(
164
164
 
165
165
  const videos = Array.from(page.getElementsByTagName("video"));
166
166
  videos.forEach((video) => {
167
- video.addEventListener("pointerdown", playVideo);
168
167
  if (
169
168
  video
170
169
  .closest(kLegacyCanvasElementSelector)
@@ -173,6 +172,9 @@ export function prepareActivity(
173
172
  // don't want to show controls on these, because they are typically too small,
174
173
  // and the play time is short enough that just click-to-play is fine
175
174
  video.classList.add("bloom-ui-no-controls");
175
+ // non-draggable video click detectors are handled separately, seee handleVideoClick in video.ts,
176
+ // and in BloomDesktop handleVideoClick in bloomVideo.ts.
177
+ video.addEventListener("pointerdown", playVideo);
176
178
  }
177
179
  });
178
180