Sfoglia il codice sorgente

prevent swipes on speaker notes

Hakim El Hattab 8 anni fa
parent
commit
1116d99e87
3 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 2 1
      css/reveal.css
  2. 1 0
      css/reveal.scss
  3. 1 0
      js/reveal.js

+ 2 - 1
css/reveal.css

@@ -1179,7 +1179,8 @@ body {
   -moz-box-sizing: border-box;
        box-sizing: border-box;
   text-align: left;
-  font-family: Helvetica, sans-serif; }
+  font-family: Helvetica, sans-serif;
+  -webkit-overflow-scrolling: touch; }
 
 .reveal .speaker-notes.visible:not(:empty) {
   display: block; }

+ 1 - 0
css/reveal.scss

@@ -1315,6 +1315,7 @@ body {
 	box-sizing: border-box;
 	text-align: left;
 	font-family: Helvetica, sans-serif;
+	-webkit-overflow-scrolling: touch;
 }
 
 .reveal .speaker-notes.visible:not(:empty) {

+ 1 - 0
js/reveal.js

@@ -470,6 +470,7 @@
 
 		// Element containing notes that are visible to the audience
 		dom.speakerNotes = createSingletonNode( dom.wrapper, 'div', 'speaker-notes', null );
+		dom.speakerNotes.setAttribute( 'data-prevent-swipe', '' );
 
 		// Overlay graphic which is displayed during the paused mode
 		createSingletonNode( dom.wrapper, 'div', 'pause-overlay', null );