diff --git a/lib/components/QuizAnswerer.tsx b/lib/components/QuizAnswerer.tsx index 8ce5ef7..451a1b3 100644 --- a/lib/components/QuizAnswerer.tsx +++ b/lib/components/QuizAnswerer.tsx @@ -149,6 +149,7 @@ export default function QuizAnswerer(props: Props) { background: "black", zIndex: 999, opacity: 0, + pointerEvents: "auto", }} /> diff --git a/lib/components/ViewPublicationPage/ViewPublicationPage.tsx b/lib/components/ViewPublicationPage/ViewPublicationPage.tsx index f3a60c3..76e40e7 100644 --- a/lib/components/ViewPublicationPage/ViewPublicationPage.tsx +++ b/lib/components/ViewPublicationPage/ViewPublicationPage.tsx @@ -43,8 +43,9 @@ export default function ViewPublicationPage() { const root = document.getElementById("root"); const overlay = document.getElementById("hideoverlay"); + if (!settings.cfg?.isUnSc) overlay?.remove(); + if (root !== null && overlay !== null && settings.cfg?.isUnSc) { - overlay.style.cssText = "pointerEvents = auto;"; unscreen(overlay, root); } }, []); diff --git a/lib/components/ViewPublicationPage/questions/File/index.tsx b/lib/components/ViewPublicationPage/questions/File/index.tsx index eda60fc..5bdd306 100644 --- a/lib/components/ViewPublicationPage/questions/File/index.tsx +++ b/lib/components/ViewPublicationPage/questions/File/index.tsx @@ -43,7 +43,6 @@ export const File = ({ currentQuestion }: FileProps) => { marginTop: "20px", maxWidth: answer?.split("|")[0] ? "640px" : "600px", }} - onClick={(event) => event.preventDefault()} > {answer?.split("|")[0] ? ( event.preventDefault()); window.addEventListener("keydown", function (event) { - event.preventDefault(); if (event.key === "PrintScreen" || (event.ctrlKey && event.key === "p")) { addRemoveOverlayTimer(overlay); }