diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 00bfe952b4..d5f014e680 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -7235,10 +7235,15 @@ void LollipopDrag::setup_pointer_offset () { NoteBase* note = static_cast (_primary->get_data (X_("note"))); -#warning paul this needs to use some other math in the non-time axis view case - _pointer_offset = _display->midi_view().midi_region()->source_beats_to_absolute_time (note->note()->time ()).distance (raw_grab_time ()); + + if (_display->midi_view().show_source()) { + _pointer_offset = timepos_t (note->note()->time ()).distance (raw_grab_time ()); + } else { + _pointer_offset = _display->midi_view().midi_region()->source_beats_to_absolute_time (note->note()->time ()).distance (raw_grab_time ()); + } } + /********/ template