Skip to content

Guard dygraph touch handlers against invalid touch targets - #237

Merged
novykh merged 2 commits into
mainfrom
fix/dygraph-touch-crash
Sep 25, 2026
Merged

novykh merged 2 commits into
mainfrom
fix/dygraph-touch-crash

Conversation

@novykh

@novykh novykh commented Sep 24, 2026

Copy link
Copy Markdown
Member

A touch whose target has no getBoundingClientRect threw inside dygraph's startTouch before initialTouches was set, and every later touchmove then read pageX of undefined. Skip delegation for such touches, clear the stale context, and do the same on touchend where dygraph re-enters startTouch.

A touch whose target has no getBoundingClientRect threw inside dygraph's
startTouch before initialTouches was set, and every later touchmove then read
pageX of undefined. Skip delegation for such touches, clear the stale context,
and do the same on touchend where dygraph re-enters startTouch.
@novykh
novykh merged commit 69b2de3 into main Sep 25, 2026
2 checks passed
@novykh
novykh deleted the fix/dygraph-touch-crash branch September 25, 2026 06:10
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.

2 participants