From 6a2cb42e6b7bd8374d47552a4b0bb57b88a4f23f Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 30 Jan 2019 16:31:31 +0100 Subject: [PATCH] enable pinch-to-zoom for android --- css/reveal.css | 4 ++-- css/reveal.scss | 2 +- demo.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/reveal.css b/css/reveal.css index 4a9f0305..63ba6469 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -469,8 +469,8 @@ body { width: 100%; height: 100%; overflow: hidden; - -ms-touch-action: none; - touch-action: none; } + -ms-touch-action: pinch-zoom; + touch-action: pinch-zoom; } .reveal .slides { position: absolute; diff --git a/css/reveal.scss b/css/reveal.scss index c79a5622..ad6d1f59 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -566,7 +566,7 @@ $controlsArrowAngleActive: 36deg; width: 100%; height: 100%; overflow: hidden; - touch-action: none; + touch-action: pinch-zoom; } .reveal .slides { diff --git a/demo.html b/demo.html index 9471f8b8..62697468 100644 --- a/demo.html +++ b/demo.html @@ -12,7 +12,7 @@ - +