diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-27 00:57:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-27 00:57:51 +0100 |
| commit | efc6f0d2148441f3a30e2a66349d66461bb986f9 (patch) | |
| tree | fce7c71e46689a240029bd4819d10dc85e5b6ec1 /src/wx/timeline.h | |
| parent | d8bbc508e959d8d38c54a6db6cfc868bd64697f5 (diff) | |
Add Ctrl+scrollwheel zoom to the timeline (#2781).
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 2485e835f..621609fa7 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -110,6 +110,7 @@ private: void set_pixels_per_track (int h); void zoom_all (); void update_playhead (); + void mouse_wheel_turned(wxMouseEvent& event); std::shared_ptr<TimelineView> event_to_view (wxMouseEvent &); TimelineContentViewList selected_views () const; @@ -143,6 +144,8 @@ private: int _pixels_per_track; bool _first_resize; wxTimer _timer; + boost::optional<int> _last_mouse_wheel_x; + boost::optional<double> _last_mouse_wheel_time; static double const _minimum_pixels_per_second; static int const _minimum_pixels_per_track; |
