Skip to content

Fix: touch events example #40539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2025
Merged

Fix: touch events example #40539

merged 2 commits into from
Jul 27, 2025

Conversation

adi-ray
Copy link
Contributor

@adi-ray adi-ray commented Jul 26, 2025

Description

Updated the touch events example to use a standard for loop instead of touches.entries() ensuring compatibility with modern browsers.

Motivation

This change fixes a bug where the example didn't work in some browsers.

Additional details

image

Related issues and pull requests

Fixes #40532

@adi-ray adi-ray requested a review from a team as a code owner July 26, 2025 16:09
@adi-ray adi-ray requested review from sideshowbarker and removed request for a team July 26, 2025 16:09
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Jul 26, 2025
Copy link
Contributor

Preview URLs

@sideshowbarker sideshowbarker removed their request for review July 27, 2025 02:23
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@Josh-Cena Josh-Cena merged commit dbe0195 into mdn:main Jul 27, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Touch events: example does not work in modern browsers
2 participants