13
0

Fix tempo markers jittering when cross-dragging over large tempo deltas.

This commit is contained in:
nick_m 2016-06-08 12:45:12 +10:00
parent f05ff9570e
commit d18bbc646a

View File

@ -3273,7 +3273,7 @@ TempoMarkerDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
void void
TempoMarkerDrag::setup_pointer_frame_offset () TempoMarkerDrag::setup_pointer_frame_offset ()
{ {
_pointer_frame_offset = raw_grab_frame() - _marker->tempo().frame(); _pointer_frame_offset = raw_grab_frame() - _real_section->frame();
} }
void void
@ -3368,9 +3368,6 @@ TempoMarkerDrag::motion (GdkEvent* event, bool first_move)
show_verbose_cursor_time (_real_section->frame()); show_verbose_cursor_time (_real_section->frame());
} }
/* this has moved the bar lines themselves, so recalibrate the offset */
setup_pointer_frame_offset();
_marker->set_position (adjusted_current_frame (event, false)); _marker->set_position (adjusted_current_frame (event, false));
} }