From 1116d99e87c521b9c9c3de164a2f9d766bbdf224 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab <hakim.elhattab@gmail.com>
Date: Thu, 10 Sep 2015 11:26:05 +0200
Subject: [PATCH] prevent swipes on speaker notes

---
 css/reveal.css  | 3 ++-
 css/reveal.scss | 1 +
 js/reveal.js    | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/css/reveal.css b/css/reveal.css
index df406a8..cb54d53 100644
--- a/css/reveal.css
+++ b/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; }
diff --git a/css/reveal.scss b/css/reveal.scss
index bcc69f8..330551b 100644
--- a/css/reveal.scss
+++ b/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) {
diff --git a/js/reveal.js b/js/reveal.js
index 29c2df0..a768d68 100644
--- a/js/reveal.js
+++ b/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 );
-- 
GitLab