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

Ripple has delay on mobile #5474

Open
TeamBusylj opened this issue Feb 19, 2024 · 3 comments
Open

Ripple has delay on mobile #5474

TeamBusylj opened this issue Feb 19, 2024 · 3 comments

Comments

@TeamBusylj
Copy link
Contributor

What is affected?

Component

Description

The mobile Ripple effect experiences a slight delay of a few milliseconds between pressing a button and the effect being displayed.

Reproduction

Try it anywhere.

Try it on this button: Material outlined button

Workaround

I have not found a workaround.

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

All versions

Browser/OS/Node environment

It does occur on tested Android 14/Chrome device, but not on computer.

@asyncLiz
Copy link
Collaborator

I believe this is an intentional delay from the mobile browser to determine if a touch gesture is a tap or swipe, as opposed to a pointer device like a stylus or mouse.

Does adding touch-action: none to components with ripples remove the delay for you?

@TeamBusylj
Copy link
Contributor Author

TeamBusylj commented Feb 20, 2024 via email

@asyncLiz
Copy link
Collaborator

I tried on Android with the lit.dev playground, and there doesn't seem to be a perceptible delay to me. Can you provide a screen recording and more details on the type of mobile device hardware being used Chrome's version?

There can be a 300ms delay between touches and clicks registering. There are quite a few historical strategies for removing this delay, though modern browsers may not really experience it with the right meta tags. You can try out some of these strategies as well.

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

No branches or pull requests

2 participants