ignore delta=0 mousewheel event

fix #1607
edit
Gerald 2016-08-19 13:37:35 +08:00 committed by Hakim El Hattab
parent 0b6585bd44
commit 969885a7dc
1 changed files with 7 additions and 5 deletions

View File

@ -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();
}