Certain creatures have attacks like charge or pounce, which allows them to do something special after travelling a certain distance. For example, see the panther:
If the panther moves at least 20 feet straight toward a creature and then hits it with a claw attack on the same turn, that target must succeed on a DC 12 Strength saving throw or be knocked prone.
Imagine a small beastmasterSmall Beast Master ranger riding a panther. The panther runs 15ft15 feet, and the rider shoots an arrow at a target or uses a lance to hit a target 10ft10 feet away. The panther moves another 5ft5 feet and pounces.
Does attacking (or having a rider attack) cancel the pounce? I think not, but want to make sure.
I will add that I’m thinking within the context of a beastmasterBeast Master riding his beast.