summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-26 11:06:28 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-26 11:06:28 +0100
commitf0a9735731740bf9da24847294d9781f1bc3a331 (patch)
treeda6f0c6b1bfcc556f01412790ceaa2d2cb45b86c /src
parent9bf9d637a6fd105418c0af84727ba68823142943 (diff)
Fix slider position updates post seek (#1085).
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 69496b630..a326cfa0b 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -135,9 +135,7 @@ FilmViewer::FilmViewer (wxWindow* p)
_outline_content->Bind (wxEVT_CHECKBOX, boost::bind (&FilmViewer::refresh_panel, this));
_left_eye->Bind (wxEVT_RADIOBUTTON, boost::bind (&FilmViewer::refresh, this));
_right_eye->Bind (wxEVT_RADIOBUTTON, boost::bind (&FilmViewer::refresh, this));
- _slider->Bind (wxEVT_SCROLL_THUMBTRACK, boost::bind (&FilmViewer::slider_moved, this));
- _slider->Bind (wxEVT_SCROLL_PAGEUP, boost::bind (&FilmViewer::slider_moved, this));
- _slider->Bind (wxEVT_SCROLL_PAGEDOWN, boost::bind (&FilmViewer::slider_moved, this));
+ _slider->Bind (wxEVT_SCROLL_CHANGED, boost::bind (&FilmViewer::slider_moved, this));
_play_button->Bind (wxEVT_TOGGLEBUTTON, boost::bind (&FilmViewer::play_clicked, this));
_timer.Bind (wxEVT_TIMER, boost::bind (&FilmViewer::timer, this));
_back_button->Bind (wxEVT_LEFT_DOWN, boost::bind (&FilmViewer::back_clicked, this, _1));
@@ -384,6 +382,7 @@ FilmViewer::slider_moved ()
}
seek (t, false);
update_position_label ();
+ update_position_slider ();
}
void