Fix unresponsive back/forward clicks in player (#2914).
authorCarl Hetherington <cth@carlh.net>
Sat, 28 Dec 2024 01:25:33 +0000 (02:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Dec 2024 01:25:33 +0000 (02:25 +0100)
We need to bind also to the double click event otherwise we miss some
clicks.

src/wx/controls.cc

index 5ddcfb6e54974447b97de353b55ad884c082d926..a452e1d135269aeae7978909c94260208849b231 100644 (file)
@@ -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) {