Skip to content

bug(cdk/dialog): backdrop click is delayed on touch devices #30965

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

Open
1 task
martin-yumsto opened this issue Apr 27, 2025 · 0 comments · May be fixed by #30971
Open
1 task

bug(cdk/dialog): backdrop click is delayed on touch devices #30965

martin-yumsto opened this issue Apr 27, 2025 · 0 comments · May be fixed by #30971
Assignees
Labels
area: cdk/overlay P4 A relatively minor issue that is not relevant to core functions

Comments

@martin-yumsto
Copy link

martin-yumsto commented Apr 27, 2025

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

backdropClick emits with a delay on touch devices on cdk Dialog. It would be great to have immediate feedback.

I kind fellow developer diesieben07, pointed out setting touch-action: manipulation; on backdrop element fixes the issue.

Reproduction

Visible even on https://material.angular.io/cdk/dialog/examples when accessing from mobile or responsive simulation

Expected Behavior

backdropClick emits immediately

Actual Behavior

emit is delayed by about a second

Environment

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '__| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/

Angular CLI: 19.2.9
Node: 20.18.0
Package Manager: pnpm 8.14.1
OS: darwin arm64

Angular: 19.2.8
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package Version

@angular-devkit/architect 0.1902.9 (cli-only)
@angular-devkit/build-angular 19.2.9
@angular-devkit/core 19.2.9 (cli-only)
@angular-devkit/schematics 19.2.9 (cli-only)
@angular/cdk 19.2.11
@angular/cli 19.2.9
@angular/ssr 19.2.9
@schematics/angular 19.2.9 (cli-only)
rxjs 7.5.7
typescript 5.6.3

@martin-yumsto martin-yumsto added the needs triage This issue needs to be triaged by the team label Apr 27, 2025
@crisbeto crisbeto self-assigned this Apr 29, 2025
@crisbeto crisbeto added P4 A relatively minor issue that is not relevant to core functions area: cdk/overlay and removed needs triage This issue needs to be triaged by the team labels Apr 29, 2025
crisbeto added a commit to crisbeto/material2 that referenced this issue Apr 29, 2025
Sets `touch-action: manipulation` on the overlay backdrop to reduced the tap delay on touch devices.

Fixes angular#30965.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cdk/overlay P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants