13
0

fix cursor in smart mode, when moving up and down the frame handles

This commit is contained in:
Ben Loftis 2015-06-01 16:18:10 -05:00
parent 0288454387
commit 42915c19a4

View File

@ -1256,12 +1256,16 @@ Editor::which_canvas_cursor(ItemType type) const
cursor = _cursors->cross_hair;
break;
case LeftFrameHandle:
if ( effective_mouse_mode() == MouseObject ) // (smart mode): if the user is in the top half, override the trim cursor, since they are in the range zone
cursor = which_trim_cursor (true); //alternatively, one could argue that we _should_ allow trims here, and disallow range selection
if ( effective_mouse_mode() == MouseObject ) // (smart mode): if the user is in the btm half, show the trim cursor
cursor = which_trim_cursor (true);
else
cursor = _cursors->selector; // (smart mode): in the top half, just show the selection (range) cursor
break;
case RightFrameHandle:
if ( effective_mouse_mode() == MouseObject ) //see above
cursor = which_trim_cursor (false);
else
cursor = _cursors->selector;
break;
case StartCrossFadeItem:
cursor = _cursors->fade_in;