Skip to content

Commit

Permalink
Playback position cursor follow mode changed due to appearance issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Myler committed Apr 30, 2012
1 parent 0f7d9a7 commit ddc5f84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/Audiee/Helpers.Display.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,21 @@ define([
editorWidth = Audiee.Views.Editor.el.width(),
editorScroll = Audiee.Views.Editor.el.scrollLeft();

Audiee.Views.PlaybackControls.updateTime(this.px2sec(position));
Audiee.Views.PlaybackControls.updateTime(this.px2sec(position));
position += 120; // track controls width

$cursor.height(tracksCount * trackHeight)
.css('left', position + 'px')
.show();

/* NOTE: Removed due to appearance issues.
if (this.playbackCursorFollowing && ((position > (editorScroll + editorWidth / 2)) || position < editorScroll)) {
Audiee.Views.Editor.el.scrollLeft(position - editorWidth / 2);
}*/

if (this.playbackCursorFollowing && ((position > (editorScroll + editorWidth)) || position < editorScroll)) {
Audiee.Views.Editor.el.scrollLeft(position - 120);
}

};

Display.prototype.hidePlaybackPosition = function() {
Expand Down

0 comments on commit ddc5f84

Please sign in to comment.