Pan gesture recognizing while mouse captured

How could I have both pan gesture recognizing (NSPanGestureRecognizer) and mouse capturing (CGAssociateMouseAndMouseCursorPosition(false)) working together?

Is it possible at all?

Pan gesture recognizing while mouse captured
 
 
Q