scrolling update

This commit is contained in:
itsmattkc
2019-02-15 04:09:03 -08:00
parent 8283051869
commit 2a1838467a
5 changed files with 52 additions and 21 deletions
+6 -1
View File
@@ -12,7 +12,12 @@ ScrollArea::ScrollArea(QWidget* parent) : QScrollArea(parent) {}
void ScrollArea::wheelEvent(QWheelEvent *e) {
if (config.scroll_zooms) {
e->ignore();
if (e->angleDelta().y() != 0) panel_timeline->multiply_zoom(e->angleDelta().y() > 0);
if (e->angleDelta().y() > 0) {
panel_timeline->zoom_in();
} else if (e->angleDelta().y() < 0) {
panel_timeline->zoom_out();
}
} else {
QScrollArea::wheelEvent(e);
}