Fix zoom cursor SNAFU (#274). Increase move threshold for zoom drags so that clicks are more likely to work.

git-svn-id: svn://localhost/ardour2/branches/3.0@7978 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-11-07 02:35:00 +00:00
parent 15b5aae173
commit 94e069b14a
2 changed files with 9 additions and 1 deletions

View File

@ -808,6 +808,10 @@ public:
void finished (GdkEvent *, bool);
void aborted ();
std::pair<ARDOUR::framecnt_t, int> move_threshold () const {
return std::make_pair (4, 4);
}
private:
bool _zoom_out;
};

View File

@ -270,7 +270,11 @@ Editor::set_canvas_cursor ()
break;
case MouseZoom:
current_canvas_cursor = zoom_in_cursor;
if (Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
current_canvas_cursor = zoom_out_cursor;
} else {
current_canvas_cursor = zoom_in_cursor;
}
break;
case MouseTimeFX: