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

Option to scroll by total pixels scrolled or proportionally #69

Merged
merged 6 commits into from Feb 10, 2014
Merged

Option to scroll by total pixels scrolled or proportionally #69

merged 6 commits into from Feb 10, 2014

Conversation

hugooliveirad
Copy link

Browser-sync should synchronize scroll by total pixels scrolled too (which was the behavior of this feature before #31). This PR fixes #64.

scrollProportionally option was added to browser-sync options. It's default is true. Wiki/options should be updated after this PR get merged.

Simple changes to browser-sync-client.js were needed. Just conditionals to use raw or proportional scroll values.

@hugooliveirad
Copy link
Author

Should we test this option? Do you test option changes in any other feature?

@shakyShane
Copy link
Contributor

Don't worry about that for now - I'm looking at better ways to test scrolls anyway so I'll make sure it's tested before I publish this to NPM

shakyShane added a commit that referenced this pull request Feb 10, 2014
Option to scroll by total pixels scrolled or proportionally
@shakyShane shakyShane merged commit 60573da into BrowserSync:master Feb 10, 2014
@shakyShane
Copy link
Contributor

Thanks - great work as always :)

@hugooliveirad hugooliveirad deleted the features/64-scrolltop-position branch February 10, 2014 18:55
@shakyShane
Copy link
Contributor

Also, I'll add this to the wiki on the next release

@hugooliveirad
Copy link
Author

Great!

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.

should have an option to sync scroll-top position, instead of proportional
2 participants