mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
explicit parenthesis in complex comparison
This commit is contained in:
parent
5ad0e293ac
commit
9ace47ccc0
@ -23,7 +23,7 @@ ScrollManagement::Movement ScrollManagement::getMovement(QWheelEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Accumulate the delta
|
// Accumulate the delta
|
||||||
if(event->delta()<0 != wheelAccumulator<0 ) //different sign means change in direction
|
if((event->delta()<0) != (wheelAccumulator<0) ) //different sign means change in direction
|
||||||
wheelAccumulator = 0;
|
wheelAccumulator = 0;
|
||||||
|
|
||||||
wheelAccumulator += event->delta();
|
wheelAccumulator += event->delta();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user