fix physical mouse wheel direction

This commit is contained in:
True Zhuanjia
2024-07-07 13:09:58 +08:00
parent ee91177ca6
commit b8a3aa5d8c
+1
View File
@@ -836,6 +836,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
{
short translationDeltaY = currentScrollTranslation.y - lastScrollTranslation.y;
translationDeltaY = -translationDeltaY;
if (translationDeltaY != 0) {
LiSendScrollEvent(translationDeltaY > 0 ? 1 : -1);
}