fix physical mouse wheel direction
This commit is contained in:
@@ -836,6 +836,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
|
|||||||
|
|
||||||
{
|
{
|
||||||
short translationDeltaY = currentScrollTranslation.y - lastScrollTranslation.y;
|
short translationDeltaY = currentScrollTranslation.y - lastScrollTranslation.y;
|
||||||
|
translationDeltaY = -translationDeltaY;
|
||||||
if (translationDeltaY != 0) {
|
if (translationDeltaY != 0) {
|
||||||
LiSendScrollEvent(translationDeltaY > 0 ? 1 : -1);
|
LiSendScrollEvent(translationDeltaY > 0 ? 1 : -1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user