implemented scroll wheel zooming in all TimelineViewBase derivatives

This commit is contained in:
itsmattkc
2019-12-31 19:49:09 +11:00
parent e41fdbd6e3
commit f65e1e52b5
11 changed files with 68 additions and 3 deletions
@@ -116,7 +116,9 @@ void TimelineView::mouseDoubleClickEvent(QMouseEvent *event)
void TimelineView::wheelEvent(QWheelEvent *event)
{
if (Config::Current()["InvertTimelineScrollAxes"].toBool()) {
if (HandleZoomFromScroll(event)) {
return;
} else if (Config::Current()["InvertTimelineScrollAxes"].toBool()) {
QWheelEvent e(event->pos(),
event->delta(),
event->buttons(),