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

Swiping unexpectedly prevents text selection #8670

Open
saschanaz opened this issue Jul 22, 2021 · 0 comments · May be fixed by #8671
Open

Swiping unexpectedly prevents text selection #8670

saschanaz opened this issue Jul 22, 2021 · 0 comments · May be fixed by #8671

Comments

@saschanaz
Copy link

saschanaz commented Jul 22, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant