Skip to content

fix(website): handle DPR/zoom without blank and dead clicks - #46

Merged
Xuepoo merged 1 commit into
mainfrom
website-dpr-fix
Aug 27, 2026
Merged

fix(website): handle DPR/zoom without blank and dead clicks#46
Xuepoo merged 1 commit into
mainfrom
website-dpr-fix

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes blank gradient + dead clicks after browser zoom / DPR change (110% → 1.1000000685).

  • handleResize now pre-resizes backing store before rebuild and wraps renderApp in try/catch with fallback repaint.
  • ResizeObserver uses DPR epsilon 0.001, guards NaN/Infinity/0, wraps resize/render in try/catch, and height-only path uses window.innerHeight.
  • DPR poll also resizes backing store before rebuild and guards jitter.

Companion to vectojs#822 (CTX-0530).

@Xuepoo
Xuepoo merged commit 661463e into main Aug 27, 2026
2 checks passed
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