Skip to content

Material's custom swipe recognizer sets touch-action: none #6484

Closed
@jelbourn

Description

@jelbourn

The custom recognizers in GestureConfig are causing touch-action: none to always be added to elements with any hammer event. This is problematic because it will prevent normal scrolling. The swipe recognizer seems to be the culprit (with both pan-y and pan-x actions being tied to the recognizer, even though we only want pan-y)

We should probably only be adding recognizers that correspond to the events being listened for. This would require a (non-breaking) change in @angular/platform-browser to pass the event name to the buildHammer function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: manyArea label for issues related to many components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions