Skip to content

Commit aa9e480

Browse files
committed
Make presentation invisible overlays across entire screen
1 parent 3d31bd2 commit aa9e480

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

excalidraw-app/presentation/Presentation.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
background: black;
55
display: grid;
66
place-items: center;
7+
position: relative;
78
canvas {
89
cursor: default !important;
910
}

excalidraw-app/presentation/Presentation.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,21 +262,20 @@ export function PresentationScene(props: {
262262
// Render
263263
return (
264264
<div className="presentation-presentation" ref={presentationSceneDiv}>
265+
{/* Used for navigating slides using the mouse */}
266+
<div className="presentation-overlays">
267+
<div className="presentation-overlay" onClick={prevSlide}></div>
268+
<div className="presentation-overlay" onClick={nextSlide}></div>
269+
</div>
270+
265271
{/* We want the canvas to be in a div that has the exact same size as the scaled (zoomed in) frame */}
266272
{/* The rest is going to be black through the outer div */}
267273
<div
268274
style={{
269275
width: `${frames[frameIndex].width * scale}px`,
270276
height: `${frames[frameIndex].height * scale}px`,
271-
position: "relative",
272277
}}
273278
>
274-
{/* Used for navigating slides using the mouse */}
275-
<div className="presentation-overlays">
276-
<div className="presentation-overlay" onClick={prevSlide}></div>
277-
<div className="presentation-overlay" onClick={nextSlide}></div>
278-
</div>
279-
280279
<Excalidraw
281280
excalidrawAPI={loadExcalidrawAPI}
282281
viewModeEnabled

0 commit comments

Comments
 (0)