Skip to content

Commit

Permalink
Merge pull request #340 from StephenMcConnel/BL-14064-AnswersShowWhen…
Browse files Browse the repository at this point in the history
…Swiping

fix: Prevent showing game answers when sliding pages (BL-14064) (#340)
  • Loading branch information
andrew-polk authored Nov 20, 2024
2 parents 90439d6 + b06fa33 commit e4ec0d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dragActivityRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ export function undoPrepareActivity(page: HTMLElement) {
).forEach((elt: HTMLElement) => {
elt.parentElement?.removeChild(elt);
});
doShowAnswersInTargets(true, page);
const inPlayer = page.closest(".swiper-slide") !== null;
doShowAnswersInTargets(!inPlayer, page);
//Slider: setSlideablesVisibility(page, true);
// Array.from(page.getElementsByTagName("img")).forEach((img: HTMLElement) => {
// img.removeEventListener("click", clickSliderImage);
Expand Down

0 comments on commit e4ec0d8

Please sign in to comment.