Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

feat: optimize synced scroll #20

Merged
merged 1 commit into from
May 31, 2019

Conversation

dagjaneiro
Copy link
Contributor

@dagjaneiro dagjaneiro commented May 30, 2019

  • Avoids processing scroll events when we're not in Split mode.
  • Uses requestAnimationFrame to debounce scroll move logic.

Haven't had the chance to test it in iOS to check for performance improvements to Split mode.

Both Edit and Preview mode will not stutter anymore since there won't be any more scroll events handled in those modes.

Related: #18, standardnotes/forum#569

@moughxyz moughxyz merged commit f35d8c1 into standardnotes:master May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants