Skip to content

Commit

Permalink
JS: preventDefault() when shift-scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc authored Nov 9, 2021
1 parent 58f9962 commit ba27c0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/timeline/js/directives/ruler.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ App.directive("tlScrollableTracks", function () {
}
}
else if (e.shiftKey) {
let current_scroll = $("#scrolling_tracks").scrollLeft()
e.preventDefault();
let current_scroll = $("#scrolling_tracks").scrollLeft();
$("#scrolling_tracks").scrollLeft(current_scroll + e.originalEvent.deltaY);
}
});
Expand Down

0 comments on commit ba27c0a

Please sign in to comment.