Reset the translation to zero without adjusting for view to fix non-zero frame origin bug.

This commit is contained in:
Dan Wexler
2016-03-20 09:32:17 -07:00
parent 3152243f4e
commit 429ea535e5

View File

@@ -1232,7 +1232,7 @@ public:
if (gestureRecognizer.state == NSGestureRecognizerStateChanged) {
delta.y *= -1;
[self offsetCenterCoordinateBy:delta animated:NO];
[gestureRecognizer setTranslation:NSZeroPoint inView:self];
[gestureRecognizer setTranslation:NSZeroPoint inView:nil];
}
}
}