summaryrefslogtreecommitdiff
path: root/src/wx/content_timeline.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-21 02:29:55 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-21 02:29:55 +0100
commitbaf33d3dcaeb4a44d5f07f6194e6785813f055ad (patch)
treed5dcf41cc8c1288c3e7178ddaa15d302cb998080 /src/wx/content_timeline.cc
parent6e5d26b0e2fac85bfccaae2d3d7b767f2037758c (diff)
Fix non-shifted scrollwheel on the timeline.
It should scroll up and down, and now it does.
Diffstat (limited to 'src/wx/content_timeline.cc')
-rw-r--r--src/wx/content_timeline.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/content_timeline.cc b/src/wx/content_timeline.cc
index 537877635..7e8a74ae5 100644
--- a/src/wx/content_timeline.cc
+++ b/src/wx/content_timeline.cc
@@ -172,6 +172,8 @@ ContentTimeline::mouse_wheel_turned(wxMouseEvent& event)
_main_canvas->GetViewStart(&before_start_x, &before_start_y);
auto const width = _main_canvas->GetSize().GetWidth();
_main_canvas->Scroll(std::max(0.0, before_start_x - rotation * 100.0 / width), before_start_y);
+ } else {
+ event.Skip();
}
}