summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-21 00:26:10 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-21 00:26:10 +0100
commitb9f949d688b6e9563f6350286bbbc3f169b1b9fe (patch)
tree3cb2aaa05c6cdbd06db03bbb22f42d837fbe9b9a /src
parent28c36cd838edf5ae81d2f340c157576aa2b57e42 (diff)
Click on the timeline time axis view moves the playhead (#2369).
Diffstat (limited to 'src')
-rw-r--r--src/wx/timeline.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index 80f4133c0..2a8555e7c 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -520,6 +520,12 @@ Timeline::left_down_select (wxMouseEvent& ev)
_down_view_position = content_view->content()->position ();
}
+ if (dynamic_pointer_cast<TimelineTimeAxisView>(view)) {
+ int vsx, vsy;
+ _main_canvas->GetViewStart(&vsx, &vsy);
+ _viewer.seek(DCPTime::from_seconds((ev.GetPosition().x + vsx * _x_scroll_rate) / _pixels_per_second.get_value_or(1)), true);
+ }
+
for (auto i: _views) {
auto cv = dynamic_pointer_cast<TimelineContentView>(i);
if (!cv) {