diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-02 18:54:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-02 18:54:03 +0100 |
| commit | 6816f69ad62b05ef6b2857c526db69a4adb52c36 (patch) | |
| tree | 5c0d3b188b7ce2c0c373e47e62d5ecaaf63ef8d6 /src/wx/content_timeline.h | |
| parent | eeb11e3600b58dc6bfb778a11c6d96ceae4d808e (diff) | |
Don't draw the playhead so often.
Diffstat (limited to 'src/wx/content_timeline.h')
| -rw-r--r-- | src/wx/content_timeline.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/content_timeline.h b/src/wx/content_timeline.h index 5e8c658db..48dd986cc 100644 --- a/src/wx/content_timeline.h +++ b/src/wx/content_timeline.h @@ -111,6 +111,7 @@ private: void zoom_all(); void update_playhead(); void mouse_wheel_turned(wxMouseEvent& event); + int playhead_position() const; std::shared_ptr<ContentTimelineView> event_to_view(wxMouseEvent &); TimelineContentViewList selected_views() const; @@ -144,6 +145,7 @@ private: wxTimer _timer; boost::optional<int> _last_mouse_wheel_x; boost::optional<double> _last_mouse_wheel_time; + boost::optional<int> _last_drawn_playhead; static int const _minimum_pixels_per_track; |
