scrollSync() keeps a preview scrolled to the same fraction as the editor. It is one way,
needs no markup in the document, and also re-aligns when the preview's content changes size. It is proportional: the
two sides show roughly the same place, not the same block.
Scroll the editor; turn the switch off to let the preview stay where it is.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.
Scroll the editor on the left: the preview follows, keeping the same fraction of its height in view. The two show roughly the same place, not the same block — a table or a video can be taller on one side than on the other.
The sync is one way, from the editor to the preview, and it also re-aligns when the preview changes size.