To prevent the bag from swinging, consider attaching it to a stationary part of your car, such as the headrest of a seat or a hook on the back of a seat.