diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-04 20:29:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-04 20:29:34 +0000 |
commit | ac19bedc3d61278c516c10be72b721e753b51246 (patch) | |
tree | cdbdd35aad5c25ac124028b2e0dab6a6493e5667 /gtk2_ardour | |
parent | f61a0d892cfba3ada195a8d597292d383f089037 (diff) |
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/canvas-note-event.cc | 2 | ||||
-rw-r--r-- | 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<Editor*>(&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) { |