autoStop property

bool autoStop

True if we should automatically stop drags on mouse up

Implementation

bool get autoStop => _autoStop;
void autoStop=(bool a)

Implementation

set autoStop(bool a) {
  if(_autoStop != a) {
    _logger.finer("changing autoStop to $a");
    _autoStop = a;
    if(a) {
      // register up handler or resume existing
      if(_mouseUpSubscription == null) {
        _logger.finest("adding mouse up event to document");
        _mouseUpSubscription = document.onMouseUp.listen(_mouseUp);
      } else {
        _logger.finest("resuming mouse up event on document");
        _mouseUpSubscription.resume();
      }
    } else {
      // pause up handler
      _logger.finest("pausing mouse up event on document");
      _mouseUpSubscription.pause();
    }
  }
}