From ac19bedc3d61278c516c10be72b721e753b51246 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 4 Jan 2012 20:29:34 +0000 Subject: [PATCH] tweak constants that affect whether/where trimming cursors are shown for MIDI notes, to avoid making it so hard to drag relatively small notes git-svn-id: svn://localhost/ardour2/branches/3.0@11160 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/canvas-note-event.cc | 2 +- gtk2_ardour/midi_region_view.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/canvas-note-event.cc b/gtk2_ardour/canvas-note-event.cc index 75f9ed0d06..94b675b224 100644 --- a/gtk2_ardour/canvas-note-event.cc +++ b/gtk2_ardour/canvas-note-event.cc @@ -366,7 +366,7 @@ CanvasNoteEvent::mouse_near_ends () const bool CanvasNoteEvent::big_enough_to_trim () const { - return (x2() - x1()) > 10; /* canvas units, really pixels */ + return (x2() - x1()) > 20; /* canvas units, really pixels */ } } // namespace Canvas diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index af44311085..ac3ac92ee4 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -3004,9 +3004,9 @@ MidiRegionView::note_mouse_position (float x_fraction, float /*y_fraction*/, boo { Editor* editor = dynamic_cast(&trackview.editor()); - if (x_fraction > 0.0 && x_fraction < 0.25) { + if (x_fraction > 0.0 && x_fraction < 0.2) { editor->set_canvas_cursor (editor->cursors()->left_side_trim); - } else if (x_fraction >= 0.75 && x_fraction < 1.0) { + } else if (x_fraction >= 0.8 && x_fraction < 1.0) { editor->set_canvas_cursor (editor->cursors()->right_side_trim); } else { if (_pre_enter_cursor && can_set_cursor) { -- 2.30.2