summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-28 02:25:33 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-28 02:25:33 +0100
commit7731b78185de87c4351703433eab0baabd34d725 (patch)
tree4dcf5ee4d44b859ac28b9bafbd0c4e6e4118d1ca
parent24728b74693bb84d79474e014cdb952abc8a79f2 (diff)
Fix unresponsive back/forward clicks in player (#2914).
We need to bind also to the double click event otherwise we miss some clicks.
-rw-r--r--src/wx/controls.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc
index 5ddcfb6e5..a452e1d13 100644
--- a/src/wx/controls.cc
+++ b/src/wx/controls.cc
@@ -143,7 +143,9 @@ Controls::Controls(wxWindow* parent, FilmViewer& viewer, bool editor_controls)
_slider->Bind (wxEVT_SCROLL_THUMBRELEASE, boost::bind(&Controls::slider_released, this));
_rewind_button->Bind (wxEVT_LEFT_DOWN, boost::bind(&Controls::rewind_clicked, this, _1));
_back_button->Bind (wxEVT_LEFT_DOWN, boost::bind(&Controls::back_clicked, this, _1));
+ _back_button->Bind (wxEVT_LEFT_DCLICK, boost::bind(&Controls::back_clicked, this, _1));
_forward_button->Bind (wxEVT_LEFT_DOWN, boost::bind(&Controls::forward_clicked, this, _1));
+ _forward_button->Bind (wxEVT_LEFT_DCLICK, boost::bind(&Controls::forward_clicked, this, _1));
_frame_number->Bind (wxEVT_LEFT_DOWN, boost::bind(&Controls::frame_number_clicked, this));
_timecode->Bind (wxEVT_LEFT_DOWN, boost::bind(&Controls::timecode_clicked, this));
if (_jump_to_selected) {