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:
parent
f61a0d892c
commit
ac19bedc3d
@ -366,7 +366,7 @@ CanvasNoteEvent::mouse_near_ends () const
|
|||||||
bool
|
bool
|
||||||
CanvasNoteEvent::big_enough_to_trim () const
|
CanvasNoteEvent::big_enough_to_trim () const
|
||||||
{
|
{
|
||||||
return (x2() - x1()) > 10; /* canvas units, really pixels */
|
return (x2() - x1()) > 20; /* canvas units, really pixels */
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Canvas
|
} // namespace Canvas
|
||||||
|
@ -3004,9 +3004,9 @@ MidiRegionView::note_mouse_position (float x_fraction, float /*y_fraction*/, boo
|
|||||||
{
|
{
|
||||||
Editor* editor = dynamic_cast<Editor*>(&trackview.editor());
|
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);
|
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);
|
editor->set_canvas_cursor (editor->cursors()->right_side_trim);
|
||||||
} else {
|
} else {
|
||||||
if (_pre_enter_cursor && can_set_cursor) {
|
if (_pre_enter_cursor && can_set_cursor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user