Good question. Under the influence of a magnetic field, charged particles do all sorts of counterintuitive things due to the Lorentz force, which acts at right angles to the particle velocity and the field.
One example is a sideways precession due to the interaction between gravitational acceleration g and the Lorentz force. Fortunately this effect is basically negligible, because gravity is so much weaker than the electromagnetic forces operating on the particles.
The difficulties tend to come from the geometry of the magnetic field itself. For example, in a torus shape, there is an unavoidable drift in the vertical direction due to the combination of centrifugal force in the big circumference, and the force implied by the gradient of the magnetic field.