Skip to content
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

fix: nonpassive modifier to touchmove and touchstart events #591

Merged
merged 3 commits into from
Jul 6, 2024

Conversation

ronkeiser
Copy link
Contributor

Problem

Chrome complains of non-passive event listener violations if certain listeners are not explicitly marked as non-passive.

image

Solution

Svelte has created a convenient way to add a nonpassive event modifer like so:

  on:touchmove|nonpassive
  on:touchstart|nonpassive

This PR applies the modifier to events in Alert Dialog Content and Dialog Content

Copy link

changeset-bot bot commented Jul 2, 2024

🦋 Changeset detected

Latest commit: b6169a0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
bits-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jul 2, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
bits-ui ✅ Ready (View Log) Visit Preview b6169a0

Copy link
Owner

@huntabyte huntabyte left a comment

Choose a reason for hiding this comment

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

Thank you!

@ronkeiser
Copy link
Contributor Author

@huntabyte Should I generating patch changesets for these PRs?

@huntabyte
Copy link
Owner

I'll generate it, no worries @ronkeiser!

@huntabyte huntabyte changed the title Add nonpassive modifier to touchmove and touchstart events fix: nonpassive modifier to touchmove and touchstart events Jul 6, 2024
@huntabyte huntabyte merged commit c9799a5 into huntabyte:main Jul 6, 2024
4 checks passed
@github-actions github-actions bot mentioned this pull request Jul 6, 2024
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