File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ App.controller("TimelineCtrl", function ($scope) {
579
579
$scope . selectTransition ( "" , true ) ;
580
580
}
581
581
// Call slice method and exit (don't actually select the clip)
582
- if ( id !== "" && $scope . enable_razor && $scope . Qt && event ) {
582
+ if ( id !== "" && $scope . enable_razor && $scope . Qt && typeof event !== 'undefined' ) {
583
583
var cursor_seconds = $scope . getJavaScriptPosition ( event . clientX , null ) . position ;
584
584
timeline . RazorSliceAtCursor ( id , "" , cursor_seconds ) ;
585
585
@@ -632,7 +632,7 @@ App.controller("TimelineCtrl", function ($scope) {
632
632
$scope . selectClip ( "" , true ) ;
633
633
}
634
634
// Call slice method and exit (don't actually select the transition)
635
- if ( id !== "" && $scope . enable_razor && $scope . Qt && event ) {
635
+ if ( id !== "" && $scope . enable_razor && $scope . Qt && typeof event !== 'undefined' ) {
636
636
var cursor_seconds = $scope . getJavaScriptPosition ( event . clientX , null ) . position ;
637
637
timeline . RazorSliceAtCursor ( "" , id , cursor_seconds ) ;
638
638
You can’t perform that action at this time.
0 commit comments