projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c36cd
)
Click on the timeline time axis view moves the playhead (#2369).
author
Carl Hetherington
<cth@carlh.net>
Sun, 20 Nov 2022 23:26:10 +0000
(
00:26
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 20 Nov 2022 23:26:10 +0000
(
00:26
+0100)
src/wx/timeline.cc
patch
|
blob
|
history
diff --git
a/src/wx/timeline.cc
b/src/wx/timeline.cc
index 80f4133c03fdc9df6f567dc02c4eb1b73b29c1df..2a8555e7ce0b3fd8abcedd14dc369e2c7e43712d 100644
(file)
--- 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) {