Fix scroll speed on recent GFE versions
This commit is contained in:
parent
90d416ab34
commit
eccf517dc3
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue