You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be handy to be able to pass a callback function that would be called every time the panes are sync. I have implemented this in a fork of my own and would be happy to open a PR if you're interested.
Something like
<ScrollSynconSync={()=>console.log("Panes synchronized!")}>{/* ... some components including ScrollSyncPane */}</ScrollSync>
although we could discuss the name and signature of such function.
The text was updated successfully, but these errors were encountered:
Basically I needed to add some more logic to your requestAnimationFrame code, as requesting frames of my own would make my code compete against yours causing some delay in my animations.
Also, adding a callback allowed me to reuse the logic of skipping scroll events caused by the synchronization of panels.
It'd be handy to be able to pass a callback function that would be called every time the panes are sync. I have implemented this in a fork of my own and would be happy to open a PR if you're interested.
Something like
although we could discuss the name and signature of such function.
The text was updated successfully, but these errors were encountered: