File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ export default {
15
15
minScale : 0.2 ,
16
16
maxScale : 2.0 ,
17
17
18
- // Display presentation control arrows
18
+ // Display presentation control arrows.
19
+ // This can be a boolean (true / false) or 'speaker-only' to only display
20
+ // the controls on the speaker's screen.
19
21
controls : true ,
20
22
21
23
// Help the user learn the controls by providing hints, for example by
Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ export default class Controls {
66
66
*/
67
67
configure ( config , oldConfig ) {
68
68
69
- this . element . style . display = config . controls ? 'block' : 'none' ;
69
+ this . element . style . display = (
70
+ config . controls &&
71
+ ( config . controls !== 'speaker-only' || this . Reveal . isSpeakerNotes ( ) )
72
+ ) ? 'block' : 'none' ;
70
73
71
74
this . element . setAttribute ( 'data-controls-layout' , config . controlsLayout ) ;
72
75
this . element . setAttribute ( 'data-controls-back-arrows' , config . controlsBackArrows ) ;
You can’t perform that action at this time.
0 commit comments