mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-21 15:56:55 +00:00
Fix scroll speed on recent GFE versions
This commit is contained in:
1 parent
90d416ab34
commit
eccf517dc3
4 files changed
+4
-4
No files matched your search
@@ -444,7 +444,7 @@ static const double MOUSE_SPEED_DIVISOR = 2.5;
|
||||
short truncatedScrollY = (short)self->accumulatedScrollY;
|
||||
|
||||
if (truncatedScrollY != 0) {
|
||||
LiSendHighResScrollEvent(truncatedScrollY);
|
||||
LiSendHighResScrollEvent(truncatedScrollY * 20);
|
||||
|
||||
self->accumulatedScrollY -= truncatedScrollY;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ static const int REFERENCE_HEIGHT = 720;
|
||||
|
||||
CGPoint avgLocation = CGPointMake((firstLocation.x + secondLocation.x) / 2, (firstLocation.y + secondLocation.y) / 2);
|
||||
if (touchLocation.y != avgLocation.y) {
|
||||
LiSendHighResScrollEvent(avgLocation.y - touchLocation.y);
|
||||
LiSendHighResScrollEvent((avgLocation.y - touchLocation.y) * 10);
|
||||
}
|
||||
|
||||
// If we've moved far enough to confirm this wasn't just human/machine error,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Submodule moonlight-common/moonlight-common-c updated: a290ec032b...6001ece0b8.
Reference in new issue
Block a user