Skip to content

fix(zoom): reset zoom area on zoom out#744

Open
suvanbanerjee wants to merge 1 commit into
developmentfrom
fix/zoom-out-bug
Open

fix(zoom): reset zoom area on zoom out#744
suvanbanerjee wants to merge 1 commit into
developmentfrom
fix/zoom-out-bug

Conversation

@suvanbanerjee

Copy link
Copy Markdown
Member

Pull Request

Description

Screencast.From.2026-05-14.10-27-00.mp4

The issue occurred because the reset zoom function was not clearing the global zoom area variables.

When a user zooms in, those values remain stored. Later, when they click Live, it triggers resetTime, which causes the chart to re-render. Since the zoom variables were never reset, the previous zoom range gets applied again to the graph.

Fixes #742

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@suvanbanerjee suvanbanerjee requested a review from braddf May 14, 2026 04:58
@suvanbanerjee suvanbanerjee self-assigned this May 14, 2026
@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nowcasting-app Ready Ready Preview, Comment May 14, 2026 4:58am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
quartz-app Ignored Ignored May 14, 2026 4:58am

Request Review

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