witten
/
luminotes
Archived
1
0
Fork 0

On second thought, making scrolling speed even faster (0.25 seconds in duration).

This commit is contained in:
Dan Helfman 2008-07-29 14:52:23 -07:00
parent 3a4030fee5
commit 953bc5360d
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ Editor.prototype.highlight = function ( scroll ) {
var viewport_position = getViewportPosition();
if ( getElementPosition( this.note_controls ).y < viewport_position.y ||
getElementPosition( this.iframe ).y + getElementDimensions( this.iframe ).h > viewport_position.y + getViewportDimensions().h ) {
new ScrollTo( this.note_controls, { "afterFinish": do_highlight, "duration": 0.5 } );
new ScrollTo( this.note_controls, { "afterFinish": do_highlight, "duration": 0.25 } );
return;
}
}

View File

@ -2287,7 +2287,7 @@ Wiki.prototype.scroll_to = function ( node ) {
var viewport_position = getViewportPosition();
if ( getElementPosition( node ).y < viewport_position.y ||
getElementPosition( node ).y + getElementDimensions( node ).h > viewport_position.y + getViewportDimensions().h )
new ScrollTo( node, { "duration": 0.5 } );
new ScrollTo( node, { "duration": 0.25 } );
}
Wiki.prototype.clear_messages = function () {