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

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