On second thought, making scrolling speed even faster (0.25 seconds in duration).
This commit is contained in:
parent
3a4030fee5
commit
953bc5360d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Reference in New Issue