public void setScrollingSyncState(boolean syncScrolling) {
		if (isScrollingSynced() == syncScrolling) {
			return;
		}
		toggleScrollLockAction.setSelected(syncScrolling);
		toggleScrollLockAction.setToolBarData(new ToolBarData(
			syncScrolling ? SYNC_SCROLLING_ICON : UNSYNC_SCROLLING_ICON, SCROLLING_GROUP));
		// Notify each comparison panel of the scrolling sync state.
		for (CodeComparisonPanel codeComparisonPanel : codeComparisonPanels) {
			codeComparisonPanel.setSynchronizedScrolling(syncScrolling);
		}
		this.syncScrolling = syncScrolling;
	}
Sets whether or not scrolling is synchronized

@param syncScrolling true means synchronize scrolling and location
between the two views
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/panel/FunctionComparisonPanel.java