Improve behavior of 2 finger scrolling in trackpad mode

This commit is contained in:
Cameron Gutman
2020-11-01 16:02:34 -06:00
parent a1f09f117f
commit a358cdad3d

View File

@@ -98,7 +98,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) {
LiSendScrollEvent(avgLocation.y - touchLocation.y);
LiSendHighResScrollEvent(avgLocation.y - touchLocation.y);
}
// If we've moved far enough to confirm this wasn't just human/machine error,