Add origin information in onFlip callback