projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
99b2d92
)
Fix scrollbars when using zoom in the timeline.
author
Carl Hetherington
<cth@carlh.net>
Wed, 5 Apr 2023 20:03:02 +0000
(22:03 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 5 Apr 2023 20:03:02 +0000
(22:03 +0200)
src/wx/timeline.cc
patch
|
blob
|
history
diff --git
a/src/wx/timeline.cc
b/src/wx/timeline.cc
index d8e0e692e6f9fed0e283b253ec9f83641171d7c5..5cf84dfd51196b9435f6c98711c8631d5fea3c3e 100644
(file)
--- a/
src/wx/timeline.cc
+++ b/
src/wx/timeline.cc
@@
-702,6
+702,7
@@
Timeline::mouse_moved_zoom (wxMouseEvent& ev)
}
_zoom_point = ev.GetPosition ();
+ setup_scrollbars();
Refresh ();
}
@@
-969,9
+970,11
@@
Timeline::keypress(wxKeyEvent const& event)
switch (event.GetRawKeyCode()) {
case '+':
set_pixels_per_second(_pixels_per_second.get_value_or(1) * 2);
+ setup_scrollbars();
break;
case '-':
set_pixels_per_second(_pixels_per_second.get_value_or(1) / 2);
+ setup_scrollbars();
break;
}
}