scroll-sync icon indicating copy to clipboard operation
scroll-sync copied to clipboard

Scroll goes out of sync

Open flaviomauri opened this issue 3 years ago • 0 comments

Description

After a number of edits between the two files, the views are not aligned anymore. When trying to fix this, by disabling the scroll-sync and manually aligning, the views go out of sync once the sync is re-activated.

Steps to Reproduce

  1. Activate scroll-sync
  2. Delete and add some spaces, or code
  3. After a while the views are out of sync
  4. Disable the plugin
  5. manually align
  6. Enable the plugin
  7. The views go out of sync as if the previous scroll position was saved (uses the last scroll position from just before disabling the plugin)

Expected behavior: to ignore last scroll position and just acquire the new one

Actual behavior: the last scroll position (from before disabling the plugin) is used when activating it a second time

Reproduces how often: 100%

Versions

macOS 11.6.1, Atom 1.58.0, apm version command not recognised

Additional Information

n/a

flaviomauri avatar Nov 25 '21 10:11 flaviomauri