Fix scroll speed on recent GFE versions

This commit is contained in:
Cameron Gutman
2021-12-12 16:33:19 -06:00
parent 90d416ab34
commit eccf517dc3
4 changed files with 4 additions and 4 deletions

View File

@@ -471,7 +471,7 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
CGPoint currentScrollTranslation = [gesture translationInView:self];
short translationDeltaY = ((currentScrollTranslation.y - lastScrollTranslation.y) / self.bounds.size.height) * 120; // WHEEL_DELTA
if (translationDeltaY != 0) {
LiSendHighResScrollEvent(translationDeltaY);
LiSendHighResScrollEvent(translationDeltaY * 20);
lastScrollTranslation = currentScrollTranslation;
}
}