Player > Feats > Shot on the Run
You can move, fire a ranged weapon, and move again before your foes can react.
Dex 15, Mobility, base attack bonus +4.
As a full action, you can move up to your speed and make a single ranged attack at any point during your movement. If you have the trick attack class feature, you can take your movement from trick attack at any time during a trick attack with a ranged weapon (instead of only before).
You can move only before or after an attack with a ranged weapon, not both.