switch( mode ) {
case SCROLL_SESSION_START:
if( timelinePos != 0 ) {
edit = TimelineVisualEdit.position( this, doc, 0 ).perform();
if( !timelineVis.contains( 0 )) {
final CompoundEdit ce = new BasicCompoundEdit();
ce.addEdit( edit );
newSpan = new Span( 0, timelineVis.getLength() );
ce.addEdit( TimelineVisualEdit.scroll( this, doc, newSpan ).perform() );
ce.end();
edit = ce;
}
}
break;