Skip to content

fix: resolve zoom desynchronization during rapid scrolling#274

Merged
streamcode9 merged 1 commit into
masterfrom
fix/zoom-sync-desynchronization
Feb 26, 2026
Merged

fix: resolve zoom desynchronization during rapid scrolling#274
streamcode9 merged 1 commit into
masterfrom
fix/zoom-sync-desynchronization

Conversation

@streamcode9

Copy link
Copy Markdown
Owner
  • Fire user-initiated afterZoom callbacks synchronously so follower charts schedule RAF in the same event-handler turn, preventing them from lagging one frame behind the leader during rapid mouse wheel scrolling

  • Accept newer programmatic transforms instead of reverting to previous ones when conflict occurs, ensuring follower charts stay up-to-date during rapid zoom/pan events at axis boundary transitions (month/date labels)

  • Update tests to reflect new callback behavior (user events now fire callbacks eagerly instead of deferred in RAF)

Fixes desynchronization lag when zooming across month/date boundaries in multi-chart layouts

- Fire user-initiated afterZoom callbacks synchronously so follower charts
  schedule RAF in the same event-handler turn, preventing them from lagging
  one frame behind the leader during rapid mouse wheel scrolling

- Accept newer programmatic transforms instead of reverting to previous ones
  when conflict occurs, ensuring follower charts stay up-to-date during
  rapid zoom/pan events at axis boundary transitions (month/date labels)

- Update tests to reflect new callback behavior (user events now fire
  callbacks eagerly instead of deferred in RAF)

Fixes desynchronization lag when zooming across month/date boundaries
in multi-chart layouts
@netlify

netlify Bot commented Feb 26, 2026

Copy link
Copy Markdown

Deploy Preview for endearing-pothos-ca88dc ready!

Name Link
🔨 Latest commit e1bb6e7
🔍 Latest deploy log https://app.netlify.com/projects/endearing-pothos-ca88dc/deploys/69a0bf77985ec60008c6d9b0
😎 Deploy Preview https://deploy-preview-274--endearing-pothos-ca88dc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@streamcode9

Copy link
Copy Markdown
Owner Author

Closes #264

@streamcode9 streamcode9 merged commit 6149583 into master Feb 26, 2026
7 checks passed
@streamcode9 streamcode9 deleted the fix/zoom-sync-desynchronization branch February 26, 2026 21:58
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.

1 participant