File tree 3 files changed +2
-12
lines changed
3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ App.controller("TimelineCtrl", function ($scope) {
281
281
282
282
// Change the scale and apply to scope
283
283
$scope . setScroll = function ( normalizedScrollValue ) {
284
- var timeline_length = Math . min ( 32767 , $scope . getTimelineWidth ( 0 ) ) ;
284
+ var timeline_length = $scope . getTimelineWidth ( 0 ) ;
285
285
var scrolling_tracks = $ ( "#scrolling_tracks" ) ;
286
286
var horz_scroll_offset = normalizedScrollValue * timeline_length ;
287
287
scrolling_tracks . scrollLeft ( horz_scroll_offset ) ;
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ App.directive("tlScrollableTracks", function () {
88
88
89
89
// Pans the timeline (on middle mouse clip and drag)
90
90
element . on ( "mousemove" , function ( e ) {
91
+
91
92
if ( is_scrolling ) {
92
93
// Calculate difference from last position
93
94
var difference = { x : starting_mouse_position . x - e . pageX , y : starting_mouse_position . y - e . pageY } ;
@@ -206,8 +207,6 @@ App.directive("tlRuler", function ($timeout) {
206
207
207
208
fpt = framesPerTick ( scope . pixelsPerSecond , scope . project . fps . num , scope . project . fps . den ) ;
208
209
frame = startFrame ;
209
- console . log ( 'fpt: ' + fpt ) ;
210
- console . log ( 'startFrame: ' + startFrame ) ;
211
210
while ( frame <= endFrame ) {
212
211
t = frame / fps ;
213
212
pos = t * scope . pixelsPerSecond ;
Original file line number Diff line number Diff line change @@ -399,15 +399,6 @@ def wheelEvent(self, event):
399
399
400
400
def setZoomFactor (self , zoom_factor ):
401
401
"""Set the current zoom factor"""
402
- # Get max width of timeline
403
- project_duration = get_app ().project .get ("duration" )
404
- tick_pixels = 100
405
- min_zoom_factor = 1.0
406
- max_zoom_factor = 64.0
407
- if self .scrollbar_position [3 ] > 0.0 :
408
- # Calculate the new zoom factor, based on pixels per tick
409
- max_zoom_factor = project_duration / (self .scrollbar_position [3 ] / tick_pixels )
410
-
411
402
# Force recalculation of clips
412
403
self .zoom_factor = zoom_factor
413
404
You can’t perform that action at this time.
0 commit comments