New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-multi-scroll-sync

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

react-multi-scroll-sync

A React scroll synchronization library for precise scroll position synchronization between multiple different types of scroll containers

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

React Multi Scroll Sync

A React library for synchronizing scroll positions between multiple scroll containers.

Installation

npm install react-multi-scroll-sync

Usage

Basic Setup

import { ScrollSyncProvider, DOMScrollSyncPane } from 'react-multi-scroll-sync';

function App() {
  return (
    <ScrollSyncProvider>
      <div style={{ display: 'flex' }}>
        <DOMScrollSyncPane paneId="list-1" style={{ height: '400px', overflow: 'auto' }}>
          {items.map((item, index) => (
            <div key={index}>{item}</div>
          ))}
        </DOMScrollSyncPane>
        
        <DOMScrollSyncPane paneId="list-2" style={{ height: '400px', overflow: 'auto' }}>
          {items.map((item, index) => (
            <div key={index}>{item}</div>
          ))}
        </DOMScrollSyncPane>
      </div>
    </ScrollSyncProvider>
  );
}

Virtual Lists

import { VirtualScrollSyncPane } from 'react-multi-scroll-sync';
import { FixedSizeList } from 'react-window';

function VirtualExample() {
  return (
    <VirtualScrollSyncPane paneId="virtual-list">
      {(setHandle, onScroll) => (
        <FixedSizeList
          ref={setHandle}
          onScroll={onScroll}
          height={400}
          itemCount={1000}
          itemSize={50}
        >
          {({ index, style }) => (
            <div style={style}>Item {index}</div>
          )}
        </FixedSizeList>
      )}
    </VirtualScrollSyncPane>
  );
}

API

ScrollSyncProvider

<ScrollSyncProvider 
  enabled={true}        // Enable/disable sync
  throttleMs={16}       // Throttle interval
  tolerance={1.5}       // Bottom detection tolerance
>

DOMScrollSyncPane

<DOMScrollSyncPane paneId="unique-id">
  {/* scrollable content */}
</DOMScrollSyncPane>

VirtualScrollSyncPane

<VirtualScrollSyncPane paneId="unique-id">
  {(setHandle, onScroll) => (
    // Your virtual list component
  )}
</VirtualScrollSyncPane>

License

MIT

Keywords

react

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts