diff options
author | John Anderson <ardour@semiosix.com> | 2007-07-20 14:19:29 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-07-20 14:19:29 +0000 |
commit | cf90cfa4c10ee58ec65da833f5969b3f5f9c931e (patch) | |
tree | 58c469c42d5cd6cd5a3faf19d83904f012130531 /gtk2_ardour/editor.h | |
parent | 4c12c98e338dd88e7b05b7e47133f91c3e3bbc06 (diff) |
make control_scroll handle wheel events properly
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2160 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index f15513142e..ba2815217b 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -26,6 +26,8 @@ #include <string> #include <sys/time.h> +#include <boost/optional.hpp> + #include <libgnomecanvasmm/canvas.h> #include <libgnomecanvasmm/group.h> #include <libgnomecanvasmm/line.h> @@ -349,6 +351,9 @@ class Editor : public PublicEditor ARDOUR::Session *session; bool constructed; + + // to keep track of the playhead position for control_scroll + boost::optional<nframes_t> _control_scroll_target; PlaylistSelector* _playlist_selector; |