Reset the translation to zero without adjusting for view to fix non-zero frame origin bug.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user