How to use the @jupyterlab/cells.CellDragUtils.shouldStartDrag function in @jupyterlab/cells

To help you get started, we’ve selected a few @jupyterlab/cells examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab / packages / console / src / widget.ts View on Github external
private _evtMouseMove(event: MouseEvent) {
    const data = this._dragData;
    if (
      CellDragUtils.shouldStartDrag(
        data.pressX,
        data.pressY,
        event.clientX,
        event.clientY
      )
    ) {
      void this._startDrag(data.index, event.clientX, event.clientY);
    }
  }
github jupyterlab / jupyterlab-data-explorer / jupyterlab / packages / console / src / widget.ts View on Github external
private _evtMouseMove(event: MouseEvent) {
    const data = this._dragData;
    if (
      CellDragUtils.shouldStartDrag(
        data.pressX,
        data.pressY,
        event.clientX,
        event.clientY
      )
    ) {
      this._startDrag(data.index, event.clientX, event.clientY);
    }
  }
github jupyterlab / jupyterlab / packages / console / src / widget.ts View on Github external
private _evtMouseMove(event: MouseEvent) {
    const data = this._dragData;
    if (
      CellDragUtils.shouldStartDrag(
        data.pressX,
        data.pressY,
        event.clientX,
        event.clientY
      )
    ) {
      void this._startDrag(data.index, event.clientX, event.clientY);
    }
  }