broadcastPan method

void broadcastPan({
  1. required TradingChartController source,
  2. required double deltaX,
})

Broadcasts horizontal pan delta from source to all sibling charts.

Implementation

void broadcastPan({
  required TradingChartController source,
  required double deltaX,
}) {
  if (!_syncTimeScroll || _isBroadcasting) return;
  _isBroadcasting = true;
  try {
    for (final target in _controllers) {
      if (target != source && !target.isDisposed) {
        target.receiveSyncedPan(deltaX);
      }
    }
  } finally {
    _isBroadcasting = false;
  }
}