diff --git a/packages/cells/src/celldragutils.ts b/packages/cells/src/celldragutils.ts index 9fca357a5a81..fd6e7cc1309c 100644 --- a/packages/cells/src/celldragutils.ts +++ b/packages/cells/src/celldragutils.ts @@ -15,9 +15,8 @@ import { Cell } from './widget'; import { h, VirtualDOM } from '@phosphor/virtualdom'; import { nbformat } from '../../coreutils/lib'; - /** - * Constants for drag + * Constants for drag */ /** @@ -50,7 +49,6 @@ const CELL_DRAG_PROMPT_CLASS = 'jp-dragImage-prompt'; const CELL_DRAG_MULTIPLE_BACK = 'jp-dragImage-multipleBack'; export namespace CellDragUtils { - export type ICellTargetArea = 'input' | 'prompt' | 'cell' | 'unknown'; /** @@ -86,8 +84,8 @@ export namespace CellDragUtils { /** * Detect which part of the cell triggered the MouseEvent - * - * @param cell - The cell which contains the MouseEvent's target + * + * @param cell - The cell which contains the MouseEvent's target * @param target - The DOM node which triggered the MouseEvent */ export function detectTargetArea( @@ -112,7 +110,7 @@ export namespace CellDragUtils { /** * Detect if a drag event should be started. This is down if the * mouse is moved beyond a certain distance (DRAG_THRESHOLD). - * + * * @param prevX - X Coordinate of the mouse pointer during the mousedown event * @param prevY - Y Coordinate of the mouse pointer during the mousedown event * @param nextX - Current X Coordinate of the mouse pointer @@ -131,9 +129,9 @@ export namespace CellDragUtils { /** * Create an image for the cell(s) to be dragged - * + * * @param activeCell - The cell from where the drag event is triggered - * @param selectedCells - The cells to be dragged + * @param selectedCells - The cells to be dragged */ export function createCellDragImage( activeCell: Cell, diff --git a/packages/console/src/widget.ts b/packages/console/src/widget.ts index cf82ccc94db9..3fcd06dae6bb 100644 --- a/packages/console/src/widget.ts +++ b/packages/console/src/widget.ts @@ -389,7 +389,7 @@ export class CodeConsole extends Widget { return cells; } -/** + /** * Handle `mousedown` events for the widget. */ private _evtMouseDown(event: MouseEvent): void { @@ -520,6 +520,7 @@ export class CodeConsole extends Widget { break; case 'mouseup': this._evtMouseUp(event as MouseEvent); + break; default: break; }