Skip to content

Commit

Permalink
Merge pull request #4124 from OpenShot/shift-event-error
Browse files Browse the repository at this point in the history
Don't check event.shiftKey if event doesn't exist
  • Loading branch information
JacksonRG authored May 6, 2021
2 parents 5548711 + 259ad7a commit 78f29b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeline/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, left
snapping_result.top = top;

// Check for shift key
if (event.shiftKey) {
if ( typeof(event) !== "undefined" && event.shiftKey) {
// freeze X movement
x_offset = 0;
snapping_result.left = previous_x;
Expand Down

0 comments on commit 78f29b3

Please sign in to comment.