|
@@ -9,10 +9,6 @@ import {
|
|
|
JSONValue
|
|
|
} from '@phosphor/coreutils';
|
|
|
|
|
|
-import {
|
|
|
- ElementExt
|
|
|
-} from '@phosphor/domutils';
|
|
|
-
|
|
|
import {
|
|
|
Message
|
|
|
} from '@phosphor/messaging';
|
|
@@ -654,8 +650,6 @@ class Notebook extends StaticNotebook {
|
|
|
this._mode = newValue;
|
|
|
|
|
|
if (newValue === 'edit') {
|
|
|
- ElementExt.scrollIntoViewIfNeeded(this.node, this.activeCell.node);
|
|
|
-
|
|
|
// Edit mode deselects all cells.
|
|
|
each(this.widgets, widget => { this.deselect(widget); });
|
|
|
// Edit mode unrenders an active markdown widget.
|
|
@@ -1328,7 +1322,6 @@ class Notebook extends StaticNotebook {
|
|
|
let node = widget.editorWidget.node;
|
|
|
if (node.contains(target)) {
|
|
|
this.mode = 'edit';
|
|
|
- ElementExt.scrollIntoViewIfNeeded(this.node, widget.node);
|
|
|
}
|
|
|
} else {
|
|
|
// No cell has focus, ensure command mode.
|