File tree 2 files changed +6
-6
lines changed
src/timeline/js/directives
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -334,12 +334,12 @@ App.directive("tlClip", function ($timeout) {
334
334
clip_name = $ ( this ) . attr ( "id" ) ;
335
335
var newX , newY ;
336
336
if ( move_clips [ clip_name ] && ( move_clips [ clip_name ] [ 'top' ] && move_clips [ clip_name ] [ 'left' ] ) ) {
337
- newY = move_clips [ clip_name ] [ 'top' ] = this . style . top + y_offset ;
338
- newX = move_clips [ clip_name ] [ 'left' ] + y_offset ;
337
+ newY = move_clips [ clip_name ] [ 'top' ] + y_offset ;
338
+ newX = move_clips [ clip_name ] [ 'left' ] + x_offset ;
339
339
} else {
340
340
move_clips [ clip_name ] = { } ;
341
341
newY = this . style . top + y_offset ;
342
- newX = this . style . top + y_offset ;
342
+ newX = this . style . left + x_offset ;
343
343
}
344
344
//update the clip location in the array
345
345
move_clips [ $ ( this ) . attr ( "id" ) ] [ "top" ] = newY ;
Original file line number Diff line number Diff line change @@ -288,13 +288,13 @@ App.directive("tlTransition", function () {
288
288
transition_name = $ ( this ) . attr ( "id" ) ;
289
289
var newX , newY ;
290
290
if ( move_clips [ transition_name ] && ( move_clips [ transition_name ] [ 'top' ] && move_clips [ clip_name ] [ 'left' ] ) ) {
291
- newY = move_clips [ transition_name ] [ 'top' ] = this . style . top + y_offset ;
292
- newX = move_clips [ transition_name ] [ 'left' ] + y_offset ;
291
+ newY = move_clips [ transition_name ] [ 'top' ] + y_offset ;
292
+ newX = move_clips [ transition_name ] [ 'left' ] + x_offset ;
293
293
} else {
294
294
// If this transition is not yet in move_clips, add it.
295
295
move_clips [ transition_name ] = { } ;
296
296
newY = this . style . top + y_offset ;
297
- newX = this . style . top + y_offset ;
297
+ newX = this . style . left + x_offset ;
298
298
}
299
299
// Update the transition location in the array
300
300
move_transitions [ $ ( this ) . attr ( "id" ) ] [ "top" ] = newY ;
You can’t perform that action at this time.
0 commit comments