The Rotation gesture seeded its angle from the pointer where egui
registered the drag, past the drag threshold, so the sweep round the
anchor before that was lost; near the anchor that is a large angle.
Count from where the button went down, as After Effects does and as the
Create and Pan Behind gestures already do. A press within 3 points of
the anchor, or with no anchor on screen, has no direction and still
counts from where the drag registered, so the first move doesn't jump.
The layer under the press is the one picked.
The issue's main cause, a pivot far off for child and 3D layers, was
fixed by #2887.
Refs #2769