From: Carl Hetherington Date: Sun, 20 Nov 2022 23:26:10 +0000 (+0100) Subject: Click on the timeline time axis view moves the playhead (#2369). X-Git-Tag: v2.16.34~32 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b9f949d688b6e9563f6350286bbbc3f169b1b9fe;ds=sidebyside Click on the timeline time axis view moves the playhead (#2369). --- 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(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(i); if (!cv) {