updatePressOffset method

void updatePressOffset(
  1. Offset? offset, [
  2. bool isLong = false
])

Implementation

void updatePressOffset(Offset? offset, [bool isLong = false]) {
  if (!isLong && offset != null) {
    if (offset.dx / _mScale > _mExtentWidth) {
      offset = null;
    }
  }
  _mPressOffset = offset;
  notifyChanged();
}