diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-24 00:24:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-24 00:24:09 +0100 |
| commit | 156a018717a117a7ebf7abe0c2a01d040eaf0d6b (patch) | |
| tree | db4abe5fbb7949ea9ba4ab9bb7bb87311353e788 | |
| parent | 4fab90c545f3b563ebed54b191f27482be38759e (diff) | |
Handle left double-clicks like single clicks.
| -rw-r--r-- | src/wx/content_timeline.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/content_timeline.cc b/src/wx/content_timeline.cc index 682d1e568..0f176e80f 100644 --- a/src/wx/content_timeline.cc +++ b/src/wx/content_timeline.cc @@ -104,6 +104,7 @@ ContentTimeline::ContentTimeline(wxWindow* parent, ContentPanel* cp, shared_ptr< _labels_canvas->Bind(wxEVT_PAINT, boost::bind(&ContentTimeline::paint_labels, this)); _main_canvas->Bind(wxEVT_PAINT, boost::bind(&ContentTimeline::paint_main, this)); _main_canvas->Bind(wxEVT_LEFT_DOWN, boost::bind(&ContentTimeline::left_down, this, _1)); + _main_canvas->Bind(wxEVT_LEFT_DCLICK,boost::bind(&ContentTimeline::left_down, this, _1)); _main_canvas->Bind(wxEVT_LEFT_UP, boost::bind(&ContentTimeline::left_up, this, _1)); _main_canvas->Bind(wxEVT_RIGHT_DOWN, boost::bind(&ContentTimeline::right_down, this, _1)); _main_canvas->Bind(wxEVT_MOTION, boost::bind(&ContentTimeline::mouse_moved, this, _1)); |
