Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid reading the scroll position twice #2387

Merged
merged 1 commit into from Oct 23, 2014

Conversation

fabiomcosta
Copy link
Contributor

Removing unnecessary scroll position read.
The scroll position is already passed to refreshScrollValues when it's called: https://github.com/facebook/react/blob/master/src/browser/ui/ReactEventListener.js#L89-L92

@syranide
Copy link
Contributor

Related #2271 (my second paragraph)

@zpao
Copy link
Member

zpao commented Oct 21, 2014

cc @yungsters

@zpao
Copy link
Member

zpao commented Oct 22, 2014

@sebmarkbage @spicyj cool taking this in 0.12? it's small...

@sebmarkbage
Copy link
Collaborator

I think it can wait for 0.13. The fix has received no testing and this has been here since forever, so there doesn't seem to be an imminent need.

@zpao zpao added this to the 0.13 milestone Oct 22, 2014
sebmarkbage added a commit that referenced this pull request Oct 23, 2014
avoid reading the scroll position twice
@sebmarkbage sebmarkbage merged commit 29bcda4 into facebook:master Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants