13
0

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
This commit is contained in:
Paul Davis 2012-01-04 20:29:34 +00:00
parent f61a0d892c
commit ac19bedc3d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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) {