Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Swiping unexpectedly prevents text selection #8670

Open
@saschanaz

Description

@saschanaz

jQuery Mobile calls preventDefault() on touch events to prevent scrolling.

https://github.com/jquery/jquery-mobile/blob/4a6395df87acc4065ba39c3ab17d419fdc1a585b/js/events/touch.js#L248-L251

But this line accidentally also calls preventDefault() when event is not a TouchEvent but a MouseEvent, and thus unexpectedly prevent desktop browsers from selecting texts, which is causing web compatibility issue.

The line should check the event type to prevent such issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions