How browsersync manages to scroll web and mobile view in sync while scrolling #2012
Unanswered
basit-skill-lync
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Just think about it like a multiplayer game. All devices are 'connected' via web sockets. When you scroll on one device, that one temporarily becomes the 'controller' in a sense. So, whilst scrolling on that device, it's constantly emitting it's Y position (well, a percentage of the page scrolled) and other devices simply apply this :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Want to know the logic how browsersync is managing sync between web and mobile view while scrolling a webpage.
Beta Was this translation helpful? Give feedback.
All reactions