Skip to content

Commit 259ad7a

Browse files
author
Jackson
committed
Don't check event.shiftKey if event doesn't exist
1 parent 0ceb52d commit 259ad7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeline/js/functions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, left
273273
snapping_result.top = top;
274274

275275
// Check for shift key
276-
if (event.shiftKey) {
276+
if ( typeof(event) !== "undefined" && event.shiftKey) {
277277
// freeze X movement
278278
x_offset = 0;
279279
snapping_result.left = previous_x;

0 commit comments

Comments
 (0)