fix #22917: Dragging bar lines to top or bottom staff lines requires extra precision