summaryrefslogtreecommitdiff
path: root/src/wx/timeline.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-04 00:07:04 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-04 00:07:04 +0100
commitbeddaeab9011e745dcac9732f4e8de3f91bd81a5 (patch)
tree31fbfb76375c848694ce4ac311b5feccc49655be /src/wx/timeline.h
parentc257dde2b276dd4cb416faf63fd50c0ff1ace953 (diff)
Fix scrolling of labels; prevent zooming out too far.
Diffstat (limited to 'src/wx/timeline.h')
-rw-r--r--src/wx/timeline.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h
index 1ec633085..7af770b5f 100644
--- a/src/wx/timeline.h
+++ b/src/wx/timeline.h
@@ -98,6 +98,7 @@ private:
void clear_selection ();
void recreate_views ();
void setup_scrollbars ();
+ void scrolled (wxScrollWinEvent& ev);
boost::shared_ptr<TimelineView> event_to_view (wxMouseEvent &);
TimelineContentViewList selected_views () const;
@@ -129,6 +130,9 @@ private:
int _y_scroll_rate;
int _track_height;
+ static double const _minimum_pixels_per_second;
+ static int const _minimum_track_height;
+
boost::signals2::scoped_connection _film_changed_connection;
boost::signals2::scoped_connection _film_content_changed_connection;
};