Pinch event does no longer work when MatTooltipModule is imported
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
Pinch event should work.
Importing MatTooltipModule should have no impact on events that are specified in @angular/platform-browser
.
What is the current behavior?
pinch events are no longer fired.
What are the steps to reproduce?
https://angular-vcghq7.stackblitz.io/ (use a touch-enabled device to test pinching)
Removing the MatTooltipModule
import from app.module.ts
makes pinching work again.
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
At least @angular/material@^7
Is there anything else we should know?
Seems like the following commit introduced a provider for HAMMER_GESTURE_CONFIG
that does not register pinch
events: https://github.com/angular/material2/pull/12941/commits/866c1418c6bb5058433acd8225d942e201cf5958
Also, this provider seems to alter the way hammer-js related gestures are interpreted for the complete application.
See https://github.com/angular/material2/blob/master/src/lib/core/gestures/gesture-config.ts
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
The exact same behaviour happens when importing MatSlideToggleModule
just lost 2 hours T_T
No reaction at all? As it is totally unexpected to loose pinch-events when using material tooltips, it should be addressed…