Skip to content

Commit

Permalink
formatting if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonRG committed Aug 18, 2021
1 parent ce44ad0 commit c60a54e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/timeline/js/directives/ruler.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ App.directive("tlScrollableTracks", function () {
element.on("wheel",function (e) {
if (e.ctrlKey) {
e.preventDefault(); // Don't scroll like a browser
} else {
return;
}
if (e.originalEvent.deltaY > 0) { // Scroll down: Zoom out
/*global timeline*/
timeline.zoomOut();
} else { // Scroll Up: Zoom in
/*global timeline*/
timeline.zoomIn();
if (e.originalEvent.deltaY > 0) { // Scroll down: Zoom out
/*global timeline*/
timeline.zoomOut();
} else { // Scroll Up: Zoom in
/*global timeline*/
timeline.zoomIn();
}
}
});

Expand Down

0 comments on commit c60a54e

Please sign in to comment.