ignore delta=0 mousewheel event

fix #1607
This commit is contained in:
Gerald authored and Hakim El Hattab committed 2016-10-05 11:29:47 +02:00
1 parent 0b6585bd44
commit 969885a7dc
1 file changed
+3 -1
+3 -1
View File
@@ -4297,7 +4297,9 @@
if( delta > 0 ) { if( delta > 0 ) {
navigateNext(); 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(); navigatePrev();
} }