mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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:
parent
15b5aae173
commit
94e069b14a
2 changed files with 9 additions and 1 deletions
|
|
@ -808,6 +808,10 @@ public:
|
||||||
void finished (GdkEvent *, bool);
|
void finished (GdkEvent *, bool);
|
||||||
void aborted ();
|
void aborted ();
|
||||||
|
|
||||||
|
std::pair<ARDOUR::framecnt_t, int> move_threshold () const {
|
||||||
|
return std::make_pair (4, 4);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool _zoom_out;
|
bool _zoom_out;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -270,7 +270,11 @@ Editor::set_canvas_cursor ()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MouseZoom:
|
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;
|
break;
|
||||||
|
|
||||||
case MouseTimeFX:
|
case MouseTimeFX:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue