cancelDrag method

void cancelDrag()

Aborts the current drag without mutating the tree.

Implementation

void cancelDrag() {
  _autoScrollTicker.stop();
  _lastAutoScrollTick = null;
  if (_session == null) return;
  _session = null;
  notifyListeners();
}