Skip to content

Population scatter chart has no resize handling; clicks can open the wrong patient #63

Description

@manjula25

Summary

The population scatter chart draws its canvas once per data change using getBoundingClientRect() with no ResizeObserver — after a window resize the bitmap is stretched while the cached dotAreasRef hit-test positions keep the old coordinates.

Evidence

apps/web/src/pages/Population.tsx:113-253; the canvas is CSS w-full. (Contrast PatientDetail's OrchestratorCanvas, which correctly uses feedsRef + ResizeObserver.)

Impact

After any window resize, clicks within a dot's radius can navigate to a different patient than the one visually clicked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions