Skip to content

Instantly share code, notes, and snippets.

@okonet
Created January 13, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okonet/28fcc2b91e8d687539ebcabfe721cd7c to your computer and use it in GitHub Desktop.
Save okonet/28fcc2b91e8d687539ebcabfe721cd7c to your computer and use it in GitHub Desktop.
React at 60fps Example 2
handleScroll = (evt) => {
// Calculate new scrollTop positions
// for left and right panes based on
// DOM nodes and evt.target.scrollTop
this.leftPaneScrollTop =
this.rightPaneScrollTop =
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment