aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGerald <gera2ld@163.com>2016-08-19 13:37:35 +0800
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-10-05 11:29:47 +0200
commit969885a7dc5ec7dda0ff6b8bcb4096288f945bc0 (patch)
tree42f96065845c1a2bc0a6379a8bbe24345e1a6f64 /js
parent0b6585bd44fe86344408d9d3ab8d3c17e254738a (diff)
downloadfosdem-2018-presentation-969885a7dc5ec7dda0ff6b8bcb4096288f945bc0.tar
fosdem-2018-presentation-969885a7dc5ec7dda0ff6b8bcb4096288f945bc0.tar.gz
ignore delta=0 mousewheel event
fix #1607
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 675f5ad..cc66671 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2605,10 +2605,10 @@
* Updates the slide number div to reflect the current slide.
*
* The following slide number formats are available:
- * "h.v": horizontal . vertical slide number (default)
- * "h/v": horizontal / vertical slide number
- * "c": flattened slide number
- * "c/t": flattened slide number / total slides
+ * "h.v": horizontal . vertical slide number (default)
+ * "h/v": horizontal / vertical slide number
+ * "c": flattened slide number
+ * "c/t": flattened slide number / total slides
*/
function updateSlideNumber() {
@@ -4297,7 +4297,9 @@
if( delta > 0 ) {
navigateNext();
}
- else {
+ // fix #1607: On MacBook trackpad, a `delta=0` mousewheel event
+ // will be triggered as soon as two fingers touch.
+ else if( delta < 0 ) {
navigatePrev();
}