File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
excalidraw-app/presentation Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44 background : black ;
55 display : grid ;
66 place-items : center ;
7+ position : relative ;
78 canvas {
89 cursor : default !important ;
910 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments